#AF2F27#AF2F27
#AF2F27 is a mid, vivid red. Relative luminance 0.113; OKLCH L 50.3% C 0.166 H 28.2°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2F27 |
|---|---|
| RGB | rgb(175, 47, 39) |
| HSL | hsl(4, 64%, 42%) |
| HSV | hsv(4, 78%, 69%) |
| CMYK | cmyk(0%, 73.1%, 77.7%, 31.4%) |
| CIE-LAB | lab(40.08, 50.98, 35.64) |
| CIE-LCH | lch(40.08, 62.20, 34.96°) |
| OKLab | oklab(50.3% 0.1462 0.0785) |
| OKLCH | oklch(50.3% 0.166 28.2) |
| XYZ | xyz(19.0641, 11.2964, 3.0957) |
| Luminance | 0.1129 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 1.70
Brown
#A52A2A
ΔE00 3.21
Brick
#A03623
ΔE00 3.64
Scarlet
#BE0119
ΔE00 3.84
Brownish Red
#9E3623
ΔE00 3.94
Darkish Red
#A90308
ΔE00 5.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2F27 #27A7AF
analogous
#AF2763 #AF2F27 #AF7327
triadic
#AF2F27 #27AF2F #2F27AF
tetradic
#AF2F27 #63AF27 #27A7AF #7327AF
square
#AF2F27 #63AF27 #27A7AF #7327AF
split-complementary
#AF2F27 #27AF73 #2763AF
monochromatic
#4B1411 #7D221C #AF2F27 #D4483F #DF7871
Accessibility & contrast
On white
6.44
#AF2F27 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#AF2F27 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2F27
6.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2F27 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2F27 | 1.00 | 6.44 | 3.26 | 6.44 |
| #FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#554D25
Deuteranopia (green-blind)
#756922
Tritanopia (blue-blind)
#C1002E
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #af2f27; /* rgb */ color: rgb(175, 47, 39); /* oklch */ color: oklch(50.3% 0.166 28.2);
Tailwind
colors: {
custom: {
50: '#d07162',
500: '#af2f27',
950: '#000000',
},
}SCSS
$custom: #af2f27; $custom-light: #d07162; $custom-dark: #000000;
JSON
{
"hex": "#af2f27",
"rgb": {
"r": 175,
"g": 47,
"b": 39
},
"hsl": {
"h": 3.529,
"s": 63.551,
"l": 41.961
},
"oklch": {
"l": 0.50301,
"c": 0.16597,
"h": 28.2
},
"luminance": 0.11293
}Semantic roles & 50–950 ramp
primary
#AF2F27
secondary
#6BC1C6
accent
#DDE741
background
#FDF7F5
surface
#FBEDEA
border
#D4C8C6
text
#160805
muted
#847B79