#AF312A#AF312A
#AF312A is a mid, vivid red. Relative luminance 0.115; OKLCH L 50.5% C 0.164 H 27.8°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #AF312A |
|---|---|
| RGB | rgb(175, 49, 42) |
| HSL | hsl(3, 61%, 43%) |
| HSV | hsv(3, 76%, 69%) |
| CMYK | cmyk(0%, 72%, 76%, 31.4%) |
| CIE-LAB | lab(40.38, 50.35, 34.25) |
| CIE-LCH | lch(40.38, 60.90, 34.23°) |
| OKLab | oklab(50.54% 0.1449 0.0763) |
| OKLCH | oklch(50.54% 0.164 27.8) |
| XYZ | xyz(19.1976, 11.4807, 3.3952) |
| Luminance | 0.1148 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.01
Brown
#A52A2A
ΔE00 3.04
Brick
#A03623
ΔE00 3.94
Scarlet
#BE0119
ΔE00 4.18
Brownish Red
#9E3623
ΔE00 4.22
Dull Red
#BB3F3F
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF312A #2AA8AF
analogous
#AF2A65 #AF312A #AF742A
triadic
#AF312A #2AAF31 #312AAF
tetradic
#AF312A #65AF2A #2AA8AF #742AAF
square
#AF312A #65AF2A #2AA8AF #742AAF
split-complementary
#AF312A #2AAF74 #2A65AF
monochromatic
#4C1512 #7E231E #AF312A #D24C44 #DE7B75
Accessibility & contrast
On white
6.37
#AF312A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#AF312A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF312A
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF312A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF312A | 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)
#564E28
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#C10031
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #af312a; /* rgb */ color: rgb(175, 49, 42); /* oklch */ color: oklch(50.5% 0.164 27.8);
Tailwind
colors: {
custom: {
50: '#cf7264',
500: '#af312a',
950: '#000000',
},
}SCSS
$custom: #af312a; $custom-light: #cf7264; $custom-dark: #000000;
JSON
{
"hex": "#af312a",
"rgb": {
"r": 175,
"g": 49,
"b": 42
},
"hsl": {
"h": 3.158,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.50538,
"c": 0.16375,
"h": 27.8
},
"luminance": 0.11478
}Semantic roles & 50–950 ramp
primary
#AF312A
secondary
#6FC1C6
accent
#DCE443
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150805
muted
#837B7A