#AF2531#AF2531
#AF2531 is a mid, vivid red. Relative luminance 0.107; OKLCH L 49.5% C 0.173 H 22.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2531 |
|---|---|
| RGB | rgb(175, 37, 49) |
| HSL | hsl(355, 65%, 42%) |
| HSV | hsv(355, 79%, 69%) |
| CMYK | cmyk(0%, 78.9%, 72%, 31.4%) |
| CIE-LAB | lab(39.00, 54.74, 28.53) |
| CIE-LCH | lch(39.00, 61.72, 27.53°) |
| OKLab | oklab(49.55% 0.1603 0.0654) |
| OKLCH | oklch(49.55% 0.173 22.2) |
| XYZ | xyz(18.8973, 10.6618, 3.9680) |
| Luminance | 0.1066 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Brown
#A52A2A
ΔE00 2.91
Lipstick Red
#C0022F
ΔE00 3.13
Cardinal
#C41E3A
ΔE00 4.27
Firebrick
#B22222
ΔE00 4.33
Rose Red
#BE013C
ΔE00 5.16
Rouge
#AB1239
ΔE00 5.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2531 #25AFA3
analogous
#AF2576 #AF2531 #AF5E25
triadic
#AF2531 #31AF25 #2531AF
tetradic
#AF2531 #76AF25 #25AFA3 #5E25AF
square
#AF2531 #76AF25 #25AFA3 #5E25AF
split-complementary
#AF2531 #25AF5E #2576AF
monochromatic
#4A1015 #7C1A23 #AF2531 #D63C49 #E06E78
Accessibility & contrast
On white
6.71
#AF2531 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.13
#AF2531 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2531
6.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2531 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2531 | 1.00 | 6.71 | 3.13 | 6.71 |
| #FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F4930
Deuteranopia (green-blind)
#71662C
Tritanopia (blue-blind)
#C1002B
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #af2531; /* rgb */ color: rgb(175, 37, 49); /* oklch */ color: oklch(49.5% 0.173 22.2);
Tailwind
colors: {
custom: {
50: '#cf6d69',
500: '#af2531',
950: '#000000',
},
}SCSS
$custom: #af2531; $custom-light: #cf6d69; $custom-dark: #000000;
JSON
{
"hex": "#af2531",
"rgb": {
"r": 175,
"g": 37,
"b": 49
},
"hsl": {
"h": 354.783,
"s": 65.094,
"l": 41.569
},
"oklch": {
"l": 0.49545,
"c": 0.17312,
"h": 22.2
},
"luminance": 0.10659
}Semantic roles & 50–950 ramp
primary
#AF2531
secondary
#69C7BF
accent
#E8D940
background
#FDF6F6
surface
#FBECEB
border
#D4C7C6
text
#150806
muted
#837B7A