#AF312D#AF312D
#AF312D is a mid, vivid red. Relative luminance 0.115; OKLCH L 50.6% C 0.163 H 26.7°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #AF312D |
|---|---|
| RGB | rgb(175, 49, 45) |
| HSL | hsl(2, 59%, 43%) |
| HSV | hsv(2, 74%, 69%) |
| CMYK | cmyk(0%, 72%, 74.3%, 31.4%) |
| CIE-LAB | lab(40.42, 50.48, 32.55) |
| CIE-LCH | lch(40.42, 60.07, 32.82°) |
| OKLab | oklab(50.58% 0.1459 0.0734) |
| OKLCH | oklch(50.58% 0.163 26.7) |
| XYZ | xyz(19.2533, 11.5030, 3.6886) |
| Luminance | 0.1150 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.33
Brown
#A52A2A
ΔE00 2.66
Scarlet
#BE0119
ΔE00 4.51
Brick
#A03623
ΔE00 4.58
Dull Red
#BB3F3F
ΔE00 4.74
Brownish Red
#9E3623
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF312D #2DABAF
analogous
#AF2D6A #AF312D #AF722D
triadic
#AF312D #2DAF31 #312DAF
tetradic
#AF312D #6AAF2D #2DABAF #722DAF
square
#AF312D #6AAF2D #2DABAF #722DAF
split-complementary
#AF312D #2DAF72 #2D6AAF
monochromatic
#4E1614 #7E2320 #AF312D #D04D49 #DD7D7A
Accessibility & contrast
On white
6.36
#AF312D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#AF312D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF312D
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF312D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF312D | 1.00 | 6.36 | 3.30 | 6.36 |
| #FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#564E2B
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#C10031
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af312d; /* rgb */ color: rgb(175, 49, 45); /* oklch */ color: oklch(50.6% 0.163 26.7);
Tailwind
colors: {
custom: {
50: '#cf7266',
500: '#af312d',
950: '#000000',
},
}SCSS
$custom: #af312d; $custom-light: #cf7266; $custom-dark: #000000;
JSON
{
"hex": "#af312d",
"rgb": {
"r": 175,
"g": 49,
"b": 45
},
"hsl": {
"h": 1.846,
"s": 59.091,
"l": 43.137
},
"oklch": {
"l": 0.50577,
"c": 0.16332,
"h": 26.7
},
"luminance": 0.115
}Semantic roles & 50–950 ramp
primary
#AF312D
secondary
#73C2C5
accent
#DDE246
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A