#7F172A#7F172A
#7F172A is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.3% C 0.137 H 16.9°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).
Color values
| HEX | #7F172A |
|---|---|
| RGB | rgb(127, 23, 42) |
| HSL | hsl(349, 69%, 29%) |
| HSV | hsv(349, 82%, 50%) |
| CMYK | cmyk(0%, 81.9%, 66.9%, 50.2%) |
| CIE-LAB | lab(27.55, 44.12, 16.68) |
| CIE-LCH | lch(27.55, 47.17, 20.71°) |
| OKLab | oklab(39.28% 0.1315 0.0399) |
| OKLCH | oklch(39.28% 0.137 16.9) |
| XYZ | xyz(9.4777, 5.2934, 2.7127) |
| Luminance | 0.0529 (WCAG relative) |
| Temperature | warm |
| Family | red |
Closest named colors
Wine Red
#7B0323
ΔE00 2.18
Burgundy
#800020
ΔE00 2.70
Bordeaux
#7B002C
ΔE00 4.03
Red Wine
#8C0034
ΔE00 4.52
Claret
#680018
ΔE00 5.60
Wine
#722F37
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F172A #177F6C
analogous
#7F175E #7F172A #7F3817
triadic
#7F172A #2A7F17 #172A7F
tetradic
#7F172A #5E7F17 #177F6C #38177F
square
#7F172A #5E7F17 #177F6C #38177F
split-complementary
#7F172A #177F38 #175E7F
monochromatic
#1A0509 #4B0E19 #7F172A #B3203B #DB3654
Accessibility & contrast
On white
10.20
#7F172A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#7F172A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F172A
10.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F172A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F172A | 1.00 | 10.20 | 2.06 | 10.20 |
| #FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#36332A
Deuteranopia (green-blind)
#504927
Tritanopia (blue-blind)
#8C001F
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #7f172a; /* rgb */ color: rgb(127, 23, 42); /* oklch */ color: oklch(39.3% 0.137 16.9);
Tailwind
colors: {
custom: {
50: '#ab6063',
500: '#7f172a',
950: '#000000',
},
}SCSS
$custom: #7f172a; $custom-light: #ab6063; $custom-dark: #000000;
JSON
{
"hex": "#7f172a",
"rgb": {
"r": 127,
"g": 23,
"b": 42
},
"hsl": {
"h": 349.038,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.39275,
"c": 0.13747,
"h": 16.9
},
"luminance": 0.05292
}Semantic roles & 50–950 ramp
primary
#7F172A
secondary
#3EB49E
accent
#ECCC3C
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979