#AB2831#AB2831
#AB2831 is a mid, vivid red. Relative luminance 0.104; OKLCH L 49.1% C 0.167 H 22.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).
Color values
| HEX | #AB2831 |
|---|---|
| RGB | rgb(171, 40, 49) |
| HSL | hsl(356, 62%, 41%) |
| HSV | hsv(356, 77%, 67%) |
| CMYK | cmyk(0%, 76.6%, 71.3%, 32.9%) |
| CIE-LAB | lab(38.55, 52.58, 27.80) |
| CIE-LCH | lch(38.55, 59.48, 27.86°) |
| OKLab | oklab(49.07% 0.154 0.064) |
| OKLCH | oklch(49.07% 0.167 22.6) |
| XYZ | xyz(18.1098, 10.4001, 3.9590) |
| Luminance | 0.1040 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Brown
#A52A2A
ΔE00 2.41
Lipstick Red
#C0022F
ΔE00 3.86
Firebrick
#B22222
ΔE00 4.37
Cardinal
#C41E3A
ΔE00 4.93
Rouge
#AB1239
ΔE00 5.27
Rose Red
#BE013C
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AB2831 #28ABA2
analogous
#AB2873 #AB2831 #AB6128
triadic
#AB2831 #31AB28 #2831AB
tetradic
#AB2831 #73AB28 #28ABA2 #6128AB
square
#AB2831 #73AB28 #28ABA2 #6128AB
split-complementary
#AB2831 #28AB61 #2873AB
monochromatic
#481115 #791C23 #AB2831 #D23E48 #DE7077
Accessibility & contrast
On white
6.82
#AB2831 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.08
#AB2831 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AB2831
6.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AB2831 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AB2831 | 1.00 | 6.82 | 3.08 | 6.82 |
| #FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F4930
Deuteranopia (green-blind)
#70652D
Tritanopia (blue-blind)
#BC002D
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #ab2831; /* rgb */ color: rgb(171, 40, 49); /* oklch */ color: oklch(49.1% 0.167 22.6);
Tailwind
colors: {
custom: {
50: '#cc6d69',
500: '#ab2831',
950: '#000000',
},
}SCSS
$custom: #ab2831; $custom-light: #cc6d69; $custom-dark: #000000;
JSON
{
"hex": "#ab2831",
"rgb": {
"r": 171,
"g": 40,
"b": 49
},
"hsl": {
"h": 355.878,
"s": 62.085,
"l": 41.373
},
"oklch": {
"l": 0.49066,
"c": 0.16673,
"h": 22.6
},
"luminance": 0.10397
}Semantic roles & 50–950 ramp
primary
#AB2831
secondary
#6AC4BE
accent
#E5DA43
background
#FDF7F6
surface
#FBEDEB
border
#D4C8C6
text
#150806
muted
#837B7A