#AF312C#AF312C
#AF312C is a mid, vivid red. Relative luminance 0.115; OKLCH L 50.6% C 0.163 H 27.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #AF312C |
|---|---|
| RGB | rgb(175, 49, 44) |
| HSL | hsl(2, 60%, 43%) |
| HSV | hsv(2, 75%, 69%) |
| CMYK | cmyk(0%, 72%, 74.9%, 31.4%) |
| CIE-LAB | lab(40.40, 50.44, 33.12) |
| CIE-LCH | lch(40.40, 60.34, 33.29°) |
| OKLab | oklab(50.56% 0.1456 0.0744) |
| OKLCH | oklch(50.56% 0.163 27.1) |
| XYZ | xyz(19.2343, 11.4953, 3.5884) |
| Luminance | 0.1149 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.19
Brown
#A52A2A
ΔE00 2.76
Brick
#A03623
ΔE00 4.36
Scarlet
#BE0119
ΔE00 4.38
Brownish Red
#9E3623
ΔE00 4.61
Dull Red
#BB3F3F
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF312C #2CAAAF
analogous
#AF2C68 #AF312C #AF722C
triadic
#AF312C #2CAF31 #312CAF
tetradic
#AF312C #68AF2C #2CAAAF #722CAF
square
#AF312C #68AF2C #2CAAAF #722CAF
split-complementary
#AF312C #2CAF72 #2C68AF
monochromatic
#4D1613 #7E2320 #AF312C #D14D47 #DD7C78
Accessibility & contrast
On white
6.37
#AF312C on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#AF312C on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF312C
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF312C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF312C | 1.00 | 6.37 | 3.30 | 6.37 |
| #FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#564E2A
Deuteranopia (green-blind)
#756927
Tritanopia (blue-blind)
#C10031
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af312c; /* rgb */ color: rgb(175, 49, 44); /* oklch */ color: oklch(50.6% 0.163 27.1);
Tailwind
colors: {
custom: {
50: '#cf7265',
500: '#af312c',
950: '#000000',
},
}SCSS
$custom: #af312c; $custom-light: #cf7265; $custom-dark: #000000;
JSON
{
"hex": "#af312c",
"rgb": {
"r": 175,
"g": 49,
"b": 44
},
"hsl": {
"h": 2.29,
"s": 59.817,
"l": 42.941
},
"oklch": {
"l": 0.50564,
"c": 0.16346,
"h": 27.1
},
"luminance": 0.11492
}Semantic roles & 50–950 ramp
primary
#AF312C
secondary
#72C2C5
accent
#DDE345
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A