#AF2838#AF2838
#AF2838 is a mid, vivid red. Relative luminance 0.109; OKLCH L 49.9% C 0.170 H 20.0°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2838 |
|---|---|
| RGB | rgb(175, 40, 56) |
| HSL | hsl(353, 63%, 42%) |
| HSV | hsv(353, 77%, 69%) |
| CMYK | cmyk(0%, 77.1%, 68%, 31.4%) |
| CIE-LAB | lab(39.45, 54.15, 24.75) |
| CIE-LCH | lch(39.45, 59.54, 24.56°) |
| OKLab | oklab(49.91% 0.16 0.0582) |
| OKLCH | oklch(49.91% 0.17 20) |
| XYZ | xyz(19.1539, 10.9200, 4.8398) |
| Luminance | 0.1092 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Lipstick Red
#C0022F
ΔE00 3.60
Cardinal
#C41E3A
ΔE00 3.81
Rose Red
#BE013C
ΔE00 3.86
Rouge
#AB1239
ΔE00 3.88
Brown
#A52A2A
ΔE00 4.48
Dull Red
#BB3F3F
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2838 #28AF9F
analogous
#AF287C #AF2838 #AF5C28
triadic
#AF2838 #38AF28 #2838AF
tetradic
#AF2838 #7CAF28 #28AF9F #5C28AF
square
#AF2838 #7CAF28 #28AF9F #5C28AF
split-complementary
#AF2838 #28AF5C #287CAF
monochromatic
#4B1118 #7D1D28 #AF2838 #D44152 #DF737F
Accessibility & contrast
On white
6.60
#AF2838 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#AF2838 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2838
6.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2838 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2838 | 1.00 | 6.60 | 3.18 | 6.60 |
| #FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.60 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#504B38
Deuteranopia (green-blind)
#726734
Tritanopia (blue-blind)
#C0002F
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #af2838; /* rgb */ color: rgb(175, 40, 56); /* oklch */ color: oklch(49.9% 0.170 20.0);
Tailwind
colors: {
custom: {
50: '#cf6e6e',
500: '#af2838',
950: '#000000',
},
}SCSS
$custom: #af2838; $custom-light: #cf6e6e; $custom-dark: #000000;
JSON
{
"hex": "#af2838",
"rgb": {
"r": 175,
"g": 40,
"b": 56
},
"hsl": {
"h": 352.889,
"s": 62.791,
"l": 42.157
},
"oklch": {
"l": 0.49906,
"c": 0.17023,
"h": 20
},
"luminance": 0.10917
}Semantic roles & 50–950 ramp
primary
#AF2838
secondary
#6DC6BB
accent
#E6D242
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150807
muted
#837B7A