#7F2173#7F2173
#7F2173 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.158 H 333.7°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2173 |
|---|---|
| RGB | rgb(127, 33, 115) |
| HSL | hsl(308, 59%, 31%) |
| HSV | hsv(308, 74%, 50%) |
| CMYK | cmyk(0%, 74%, 9.4%, 50.2%) |
| CIE-LAB | lab(31.44, 49.06, -25.66) |
| CIE-LCH | lch(31.44, 55.37, 332.39°) |
| OKLab | oklab(42.98% 0.142 -0.0703) |
| OKLCH | oklch(42.98% 0.158 333.7) |
| XYZ | xyz(12.3909, 6.8386, 16.8837) |
| Luminance | 0.0684 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.87
Purple
#800080
ΔE00 4.40
Darkmagenta
#8B008B
ΔE00 5.20
Rich Purple
#720058
ΔE00 6.05
Warm Purple
#952E8F
ΔE00 6.25
Grape
#6C3461
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2173 #217F2D
analogous
#5C217F #7F2173 #7F2144
triadic
#7F2173 #737F21 #21737F
tetradic
#7F2173 #7F5C21 #217F2D #21447F
square
#7F2173 #7F5C21 #217F2D #21447F
split-complementary
#7F2173 #447F21 #217F5C
monochromatic
#1E081B #4E1447 #7F2173 #B02E9F #D04ABF
Accessibility & contrast
On white
8.87
#7F2173 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#7F2173 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2173
8.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2173 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2173 | 1.00 | 8.87 | 2.37 | 8.87 |
| #FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E4175
Deuteranopia (green-blind)
#404F71
Tritanopia (blue-blind)
#852A47
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #7f2173; /* rgb */ color: rgb(127, 33, 115); /* oklch */ color: oklch(43.0% 0.158 333.7);
Tailwind
colors: {
custom: {
50: '#a7669b',
500: '#7f2173',
950: '#000000',
},
}SCSS
$custom: #7f2173; $custom-light: #a7669b; $custom-dark: #000000;
JSON
{
"hex": "#7f2173",
"rgb": {
"r": 127,
"g": 33,
"b": 115
},
"hsl": {
"h": 307.66,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.42984,
"c": 0.15847,
"h": 333.7
},
"luminance": 0.06838
}Semantic roles & 50–950 ramp
primary
#7F2173
secondary
#4AB257
accent
#E25A46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E