Red
Hex #FF0000, rgb(255 0 0). A red CSS named color.
Open in palette generatorRed color codes
Click any value to copy it.
- HEX
- RGB
- HSL
- HSV
- HWB
- CMYK
- OKLCH
- OKLab
- Lab
- LCH
- CSS keyword
About Red
Red is a medium vivid red with the hex code #FF0000. In RGB it is made of 255 red, 0 green and 0 blue; in HSL its hue is 0°, with 100% saturation and 50% lightness. Its perceptual lightness (OKLCH L) is 62.8%.
It is a CSS named color, so you can write "red" anywhere CSS accepts a color. Against white it has a contrast ratio of 4.00:1 and against black 5.25:1, so black text reads better on it and passes WCAG AA for normal text.
Tints, shades and tones
Red mixed step by step with white, black and middle gray (#808080).
Tints (with white)
Shades (with black)
Tones (with gray)
Red 50-950 scale
A Tailwind-style scale built in OKLCH; the original color sits on the step with the closest lightness.
Colors that go with Red
Color harmonies rotate the hue in OKLCH and keep the lightness and chroma. Each color links to its closest named color.
Complementary
Analogous
Split complementary
Monochromatic
Contrast and readability
WCAG 2 contrast of Red with white and black. The readable text color on Red is black.
On white4.00:1
- AA fail
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc 64
On black5.25:1
- AA pass
- AA Large pass
- AAA fail
- UI 3:1 pass
APCA Lc -38
Test any pair in the contrast checker.
Color blindness preview
How Red appears with each type of color vision deficiency (simulated with the Machado model).
- Protanopia#6D5F00
- Deuteranopia#A39000
- Tritanopia#FF000F
- Protanomaly#A75900
- Deuteranomaly#BB7D00
- Tritanomaly#FF0004
- Achromatopsia#7F7F7F
Colors similar to Red
The closest named colors by perceptual difference (OKLab).
Use Red in CSS and Tailwind
.red {
color: red; /* #FF0000 */
background-color: rgb(255 0 0);
border-color: oklch(62.8% 0.258 29.2);
}/* Tailwind CSS v4: bg-red-500, text-red-700... */
@theme {
--color-red-50: #FFF8F7;
--color-red-100: #FFE8E4;
--color-red-200: #FFCFC7;
--color-red-300: #FFA699;
--color-red-400: #FF6453;
--color-red-500: #FF0000;
--color-red-600: #DB0000;
--color-red-700: #B20000;
--color-red-800: #900000;
--color-red-900: #760000;
--color-red-950: #330000;
}
<!-- or the exact color, no config -->
<div class="bg-[#FF0000] text-[#000000]">…</div>