#AF2F31#AF2F31
#AF2F31 is a mid, vivid red. Relative luminance 0.114; OKLCH L 50.4% C 0.165 H 24.6°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F31 |
|---|---|
| RGB | rgb(175, 47, 49) |
| HSL | hsl(359, 58%, 44%) |
| HSV | hsv(359, 73%, 69%) |
| CMYK | cmyk(0%, 73.1%, 72%, 31.4%) |
| CIE-LAB | lab(40.20, 51.40, 29.93) |
| CIE-LCH | lch(40.20, 59.48, 30.21°) |
| OKLab | oklab(50.43% 0.1497 0.0685) |
| OKLCH | oklch(50.43% 0.165 24.6) |
| XYZ | xyz(19.2522, 11.3717, 4.0864) |
| Luminance | 0.1137 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Brown
#A52A2A
ΔE00 2.48
Firebrick
#B22222
ΔE00 3.27
Lipstick Red
#C0022F
ΔE00 4.22
Dull Red
#BB3F3F
ΔE00 4.40
Cardinal
#C41E3A
ΔE00 4.92
Scarlet
#BE0119
ΔE00 5.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F31 #2FAFAD
analogous
#AF2F71 #AF2F31 #AF6D2F
triadic
#AF2F31 #31AF2F #2F31AF
tetradic
#AF2F31 #71AF2F #2FAFAD #6D2FAF
square
#AF2F31 #71AF2F #2FAFAD #6D2FAF
split-complementary
#AF2F31 #2FAF6D #2F71AF
monochromatic
#4F1516 #7F2223 #AF2F31 #CF4C4E #DC7C7E
Accessibility & contrast
On white
6.41
#AF2F31 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#AF2F31 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F31
6.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F31 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F31 | 1.00 | 6.41 | 3.27 | 6.41 |
| #FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#544D30
Deuteranopia (green-blind)
#74692D
Tritanopia (blue-blind)
#C10031
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af2f31; /* rgb */ color: rgb(175, 47, 49); /* oklch */ color: oklch(50.4% 0.165 24.6);
Tailwind
colors: {
custom: {
50: '#cf7169',
500: '#af2f31',
950: '#000000',
},
}SCSS
$custom: #af2f31; $custom-light: #cf7169; $custom-dark: #000000;
JSON
{
"hex": "#af2f31",
"rgb": {
"r": 175,
"g": 47,
"b": 49
},
"hsl": {
"h": 359.063,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.50433,
"c": 0.16462,
"h": 24.6
},
"luminance": 0.11369
}Semantic roles & 50–950 ramp
primary
#AF2F31
secondary
#75C4C3
accent
#E1DE47
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A