#7F156F#7F156F
#7F156F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.168 H 335.5°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).
Color values
| HEX | #7F156F |
|---|---|
| RGB | rgb(127, 21, 111) |
| HSL | hsl(309, 72%, 29%) |
| HSV | hsv(309, 83%, 50%) |
| CMYK | cmyk(0%, 83.5%, 12.6%, 50.2%) |
| CIE-LAB | lab(29.90, 52.20, -25.52) |
| CIE-LCH | lch(29.90, 58.10, 333.95°) |
| OKLab | oklab(41.81% 0.1529 -0.0698) |
| OKLCH | oklch(41.81% 0.168 335.5) |
| XYZ | xyz(11.8900, 6.1972, 15.6058) |
| Luminance | 0.0620 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.70
Purple
#800080
ΔE00 4.07
Rich Purple
#720058
ΔE00 4.81
Darkmagenta
#8B008B
ΔE00 5.30
Velvet
#750851
ΔE00 6.32
Warm Purple
#952E8F
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F156F #157F25
analogous
#5A157F #7F156F #7F153A
triadic
#7F156F #6F7F15 #156F7F
tetradic
#7F156F #7F5A15 #157F25 #153A7F
square
#7F156F #7F5A15 #157F25 #153A7F
split-complementary
#7F156F #3A7F15 #157F5A
monochromatic
#1A0417 #4A0C41 #7F156F #B41E9D #DD31C3
Accessibility & contrast
On white
9.38
#7F156F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#7F156F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F156F
9.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F156F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F156F | 1.00 | 9.38 | 2.24 | 9.38 |
| #FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#153D71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#861F42
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #7f156f; /* rgb */ color: rgb(127, 21, 111); /* oklch */ color: oklch(41.8% 0.168 335.5);
Tailwind
colors: {
custom: {
50: '#a86198',
500: '#7f156f',
950: '#000000',
},
}SCSS
$custom: #7f156f; $custom-light: #a86198; $custom-dark: #000000;
JSON
{
"hex": "#7f156f",
"rgb": {
"r": 127,
"g": 21,
"b": 111
},
"hsl": {
"h": 309.057,
"s": 71.622,
"l": 29.02
},
"oklch": {
"l": 0.41814,
"c": 0.16807,
"h": 335.5
},
"luminance": 0.06196
}Semantic roles & 50–950 ramp
primary
#7F156F
secondary
#3CB44E
accent
#EE5539
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E