#AF2840#AF2840
#AF2840 is a mid, vivid red. Relative luminance 0.110; OKLCH L 50.1% C 0.170 H 16.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2840 |
|---|---|
| RGB | rgb(175, 40, 64) |
| HSL | hsl(349, 63%, 42%) |
| HSV | hsv(349, 77%, 69%) |
| CMYK | cmyk(0%, 77.1%, 63.4%, 31.4%) |
| CIE-LAB | lab(39.59, 54.61, 19.93) |
| CIE-LCH | lch(39.59, 58.13, 20.05°) |
| OKLab | oklab(50.06% 0.1631 0.0481) |
| OKLCH | oklch(50.06% 0.17 16.4) |
| XYZ | xyz(19.3654, 11.0046, 5.9539) |
| Luminance | 0.1100 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Rouge
#AB1239
ΔE00 2.71
Rose Red
#BE013C
ΔE00 3.02
Cardinal
#C41E3A
ΔE00 4.72
Ruby
#CA0147
ΔE00 4.95
Lipstick Red
#C0022F
ΔE00 5.31
Raspberry (survey)
#B00149
ΔE00 5.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2840 #28AF97
analogous
#AF2884 #AF2840 #AF5328
triadic
#AF2840 #40AF28 #2840AF
tetradic
#AF2840 #84AF28 #28AF97 #5328AF
square
#AF2840 #84AF28 #28AF97 #5328AF
split-complementary
#AF2840 #28AF53 #2884AF
monochromatic
#4B111C #7D1D2E #AF2840 #D4415B #DF7386
Accessibility & contrast
On white
6.56
#AF2840 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.20
#AF2840 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2840
6.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2840 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2840 | 1.00 | 6.56 | 3.20 | 6.56 |
| #FFFFFF | 6.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E4B40
Deuteranopia (green-blind)
#71673C
Tritanopia (blue-blind)
#C00032
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #af2840; /* rgb */ color: rgb(175, 40, 64); /* oklch */ color: oklch(50.1% 0.170 16.4);
Tailwind
colors: {
custom: {
50: '#ce6e74',
500: '#af2840',
950: '#000000',
},
}SCSS
$custom: #af2840; $custom-light: #ce6e74; $custom-dark: #000000;
JSON
{
"hex": "#af2840",
"rgb": {
"r": 175,
"g": 40,
"b": 64
},
"hsl": {
"h": 349.333,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.50058,
"c": 0.17009,
"h": 16.4
},
"luminance": 0.11002
}Semantic roles & 50–950 ramp
primary
#AF2840
secondary
#6DC6B6
accent
#E6C942
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B