#AF2540#AF2540
#AF2540 is a mid, vivid red. Relative luminance 0.108; OKLCH L 49.8% C 0.173 H 15.8°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #AF2540 |
|---|---|
| RGB | rgb(175, 37, 64) |
| HSL | hsl(348, 65%, 42%) |
| HSV | hsv(348, 79%, 69%) |
| CMYK | cmyk(0%, 78.9%, 63.4%, 31.4%) |
| CIE-LAB | lab(39.26, 55.54, 19.50) |
| CIE-LCH | lch(39.26, 58.86, 19.35°) |
| OKLab | oklab(49.81% 0.1661 0.0471) |
| OKLCH | oklch(49.81% 0.173 15.8) |
| XYZ | xyz(19.2682, 10.8102, 5.9215) |
| Luminance | 0.1081 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Rouge
#AB1239
ΔE00 2.33
Rose Red
#BE013C
ΔE00 2.90
Ruby
#CA0147
ΔE00 4.85
Cardinal
#C41E3A
ΔE00 5.02
Raspberry (survey)
#B00149
ΔE00 5.45
Lipstick Red
#C0022F
ΔE00 5.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AF2540 #25AF94
analogous
#AF2585 #AF2540 #AF4F25
triadic
#AF2540 #40AF25 #2540AF
tetradic
#AF2540 #85AF25 #25AF94 #4F25AF
square
#AF2540 #85AF25 #25AF94 #4F25AF
split-complementary
#AF2540 #25AF4F #2585AF
monochromatic
#4A101B #7C1A2E #AF2540 #D63C5A #E06E84
Accessibility & contrast
On white
6.64
#AF2540 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#AF2540 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AF2540
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AF2540 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AF2540 | 1.00 | 6.64 | 3.16 | 6.64 |
| #FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4D4A40
Deuteranopia (green-blind)
#70673C
Tritanopia (blue-blind)
#C00031
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #af2540; /* rgb */ color: rgb(175, 37, 64); /* oklch */ color: oklch(49.8% 0.173 15.8);
Tailwind
colors: {
custom: {
50: '#ce6d74',
500: '#af2540',
950: '#000000',
},
}SCSS
$custom: #af2540; $custom-light: #ce6d74; $custom-dark: #000000;
JSON
{
"hex": "#af2540",
"rgb": {
"r": 175,
"g": 37,
"b": 64
},
"hsl": {
"h": 348.261,
"s": 65.094,
"l": 41.569
},
"oklch": {
"l": 0.49814,
"c": 0.17268,
"h": 15.8
},
"luminance": 0.10807
}Semantic roles & 50–950 ramp
primary
#AF2540
secondary
#69C7B4
accent
#E8C740
background
#FDF7F7
surface
#FBEDED
border
#D4C8C8
text
#150808
muted
#837B7B