#AF342A#AF342A
#AF342A is a mid, vivid red. Relative luminance 0.117; OKLCH L 50.9% C 0.161 H 28.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #AF342A |
|---|---|
| RGB | rgb(175, 52, 42) |
| HSL | hsl(5, 61%, 43%) |
| HSV | hsv(5, 76%, 69%) |
| CMYK | cmyk(0%, 70.3%, 76%, 31.4%) |
| CIE-LAB | lab(40.80, 49.20, 34.71) |
| CIE-LCH | lch(40.80, 60.21, 35.21°) |
| OKLab | oklab(50.85% 0.1412 0.0773) |
| OKLCH | oklch(50.85% 0.161 28.7) |
| XYZ | xyz(19.3273, 11.7400, 3.4384) |
| Luminance | 0.1174 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Firebrick
#B22222
ΔE00 2.51
Brick
#A03623
ΔE00 3.62
Brown
#A52A2A
ΔE00 3.65
Brownish Red
#9E3623
ΔE00 3.93
Scarlet
#BE0119
ΔE00 4.48
Dull Red
#BB3F3F
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF342A #2AA5AF
analogous
#AF2A63 #AF342A #AF762A
triadic
#AF342A #2AAF34 #342AAF
tetradic
#AF342A #63AF2A #2AA5AF #762AAF
square
#AF342A #63AF2A #2AA5AF #762AAF
split-complementary
#AF342A #2AAF76 #2A63AF
monochromatic
#4C1712 #7E251E #AF342A #D24F44 #DE7D75
Accessibility & contrast
On white
6.27
#AF342A on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#AF342A on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF342A
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF342A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF342A | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#584F28
Deuteranopia (green-blind)
#766A25
Tritanopia (blue-blind)
#C10633
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #af342a; /* rgb */ color: rgb(175, 52, 42); /* oklch */ color: oklch(50.9% 0.161 28.7);
Tailwind
colors: {
custom: {
50: '#cf7364',
500: '#af342a',
950: '#000000',
},
}SCSS
$custom: #af342a; $custom-light: #cf7364; $custom-dark: #000000;
JSON
{
"hex": "#af342a",
"rgb": {
"r": 175,
"g": 52,
"b": 42
},
"hsl": {
"h": 4.511,
"s": 61.29,
"l": 42.549
},
"oklch": {
"l": 0.50853,
"c": 0.16103,
"h": 28.7
},
"luminance": 0.11737
}Semantic roles & 50–950 ramp
primary
#AF342A
secondary
#6FBFC6
accent
#D8E443
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150905
muted
#837B7A