Red
Red is a medium, vivid color. Hex code #FF0000.
Red color codes
- CSS name
red - HEX
#FF0000 - RGB
rgb(255, 0, 0) - HSL
hsl(0, 100%, 50%) - OKLCH
oklch(62.8% 0.258 29.2)
HSB and CMYK values
- HSB / HSV
hsb(0, 100%, 100%) - CMYK
C0 M100 Y100 K0
White text
3.99:1 · passes WCAG AA for large text only
Black text
5.25:1 · passes WCAG AA
Shades of red
A darker shade of red is #C30804 (500), and a lighter one is #FD998A (200).
Colors that go with red
Complementary
Analogous
Triadic
The complementary color of red is #00FFFF, which is cyan.
Click a color to copy its hex code.
Colors similar to red
- Orange red#FF4500
Slightly lighter, more orange
- Crimson#DC143C
Darker, more pink, more muted
- Tomato#FF6347
Lighter, more orange, more muted
- Indian red#CD5C5C
Much more muted
- Chocolate#D2691E
More orange, much more muted
- Coral#FF7F50
Lighter, more orange, more muted
Each compared with red.
About this color
Red in CSS and design
Red is one of the 16 basic color keywords, which come from the VGA palette by way of HTML. These four lines all give the same red:
color: red;
color: #FF0000;
color: rgb(255, 0, 0);
color: hsl(0, 100%, 50%);What to know about red
CSS red, #FF0000, is the strongest red a screen can show: the red channel at full, green and blue at zero. As text on white it reaches only 3.99:1, just short of the 4.5:1 that WCAG AA asks for body text, so error text needs a darker red, such as firebrick (6.67:1) or dark red (10.01:1).
Frequently asked questions
What is the hex code for red?
#FF0000. In CSS you can also use the keyword red, which works in every browser.
What is red in RGB and HSL?
In RGB it is rgb(255, 0, 0) and in HSL hsl(0, 100%, 50%). In CMYK it is about C0 M100 Y100 K0, though printed colors vary with paper and ink.
Should I use black or white text on red?
Black text works better: it has a contrast ratio of 5.25:1 and passes WCAG AA. White text reaches 3.99:1.
What is the complementary color of red?
#00FFFF, which is cyan. It sits opposite red on the color wheel: the hue turned 180 degrees, with the same saturation and lightness.
Which colors go with red?
For strong contrast, pair it with its complementary color #00FFFF. For a calmer look, combine it with its analogous neighbors #FF0080 and #FF8000. The palette generator builds more combinations.