Red #FF0000
Red is one of the named colours in CSS, written red. Black text reaches 5.25:1 on it, enough for body text.
Try on walls Preview on a website
Colour codes
| CSS keyword | red |
|---|---|
| HEX | #FF0000 |
| RGB | rgb(255 0 0) |
| HSL | hsl(0 100% 50%) |
| OKLCH | oklch(62.8% 0.258 29.2) |
| White text | 4.00:1 · body text AA Fail |
| Black text | 5.25:1 · body text AA Pass |
Colours that go with Red
The closest colour in Sanzo Wada's A Dictionary of Color Combinations is Spectrum Red (#E31F26), the nearest, though visibly different. These are the colours Wada paired it with, ranked by their contrast with Red itself.
| Colour | HEX | Contrast with Red | Body text AA |
|---|---|---|---|
| Ivory Buff | #EBD3A2 | 2.74:1 | Fail |
| Orange Yellow | #FCB315 | 2.21:1 | Fail |
| Blue Violet | #6450A1 | 1.64:1 | Fail |
| Brick Red | #A84222 | 1.51:1 | Fail |
| Rainette Green | #8FA071 | 1.42:1 | Fail |
| Blue | #006EB8 | 1.34:1 | Fail |
| Benzol Green | #00978D | 1.11:1 | Fail |
| Eupatorium Purple | #BF5892 | 1.04:1 | Fail |
| Aconite Violet | #A36AA5 | 1.02:1 | Fail |
Palettes with Spectrum Red
Shades and tints of Red
Nine lightness steps in OKLCH that keep the hue of Red. Chroma is reduced only where sRGB cannot show it.
- 100#FFF2EF
- 200#FFDBD5
- 300#FFBAAF
- 400#FF8B7B
- 500#FF4233
- 600#D60000
- 700#A30000
- 800#740000
- 900#470000
:root {
--red-100: #FFF2EF;
--red-200: #FFDBD5;
--red-300: #FFBAAF;
--red-400: #FF8B7B;
--red-500: #FF4233;
--red-600: #D60000;
--red-700: #A30000;
--red-800: #740000;
--red-900: #470000;
}
Text that keeps Red on screen
Text #000000 on #FF0000 reaches 5.25:1, which passes WCAG AA for body text. Check it on a dashboard