#AF2E31#AF2E31
#AF2E31 is a mid, vivid red. Relative luminance 0.113; OKLCH L 50.3% C 0.166 H 24.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2E31 |
|---|---|
| RGB | rgb(175, 46, 49) |
| HSL | hsl(359, 58%, 43%) |
| HSV | hsv(359, 74%, 69%) |
| CMYK | cmyk(0%, 73.7%, 72%, 31.4%) |
| CIE-LAB | lab(40.07, 51.76, 29.78) |
| CIE-LCH | lch(40.07, 59.72, 29.91°) |
| OKLab | oklab(50.34% 0.1509 0.0681) |
| OKLCH | oklch(50.34% 0.166 24.3) |
| XYZ | xyz(19.2127, 11.2926, 4.0732) |
| Luminance | 0.1129 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Brown
#A52A2A
ΔE00 2.45
Firebrick
#B22222
ΔE00 3.35
Lipstick Red
#C0022F
ΔE00 4.06
Dull Red
#BB3F3F
ΔE00 4.51
Cardinal
#C41E3A
ΔE00 4.81
Scarlet
#BE0119
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2E31 #2EAFAC
analogous
#AF2E71 #AF2E31 #AF6B2E
triadic
#AF2E31 #31AF2E #2E31AF
tetradic
#AF2E31 #71AF2E #2EAFAC #6B2EAF
square
#AF2E31 #71AF2E #2EAFAC #6B2EAF
split-complementary
#AF2E31 #2EAF6B #2E71AF
monochromatic
#4E1516 #7F2123 #AF2E31 #D04B4E #DC7B7D
Accessibility & contrast
On white
6.45
#AF2E31 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#AF2E31 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2E31
6.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2E31 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2E31 | 1.00 | 6.45 | 3.26 | 6.45 |
| #FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544D30
Deuteranopia (green-blind)
#74692D
Tritanopia (blue-blind)
#C10031
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #af2e31; /* rgb */ color: rgb(175, 46, 49); /* oklch */ color: oklch(50.3% 0.166 24.3);
Tailwind
colors: {
custom: {
50: '#cf7169',
500: '#af2e31',
950: '#000000',
},
}SCSS
$custom: #af2e31; $custom-light: #cf7169; $custom-dark: #000000;
JSON
{
"hex": "#af2e31",
"rgb": {
"r": 175,
"g": 46,
"b": 49
},
"hsl": {
"h": 358.605,
"s": 58.371,
"l": 43.333
},
"oklch": {
"l": 0.50336,
"c": 0.16552,
"h": 24.3
},
"luminance": 0.1129
}Semantic roles & 50–950 ramp
primary
#AF2E31
secondary
#74C5C3
accent
#E2DE46
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A