#7F186F#7F186F
#7F186F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.165 H 335.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).
Color values
| HEX | #7F186F |
|---|---|
| RGB | rgb(127, 24, 111) |
| HSL | hsl(309, 68%, 30%) |
| HSV | hsv(309, 81%, 50%) |
| CMYK | cmyk(0%, 81.1%, 12.6%, 50.2%) |
| CIE-LAB | lab(30.19, 51.37, -25.07) |
| CIE-LCH | lch(30.19, 57.16, 333.99°) |
| OKLab | oklab(42.02% 0.1504 -0.0685) |
| OKLCH | oklch(42.02% 0.165 335.5) |
| XYZ | xyz(11.9485, 6.3141, 15.6253) |
| Luminance | 0.0631 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.80
Purple
#800080
ΔE00 4.27
Rich Purple
#720058
ΔE00 4.93
Darkmagenta
#8B008B
ΔE00 5.42
Velvet
#750851
ΔE00 6.33
Grape
#6C3461
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F186F #187F28
analogous
#5B187F #7F186F #7F183C
triadic
#7F186F #6F7F18 #186F7F
tetradic
#7F186F #7F5B18 #187F28 #183C7F
square
#7F186F #7F5B18 #187F28 #183C7F
split-complementary
#7F186F #3C7F18 #187F5B
monochromatic
#1A0516 #4C0E42 #7F186F #B2229C #D938C0
Accessibility & contrast
On white
9.28
#7F186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#7F186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F186F
9.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F186F | 1.00 | 9.28 | 2.26 | 9.28 |
| #FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#183D71
Deuteranopia (green-blind)
#3F4C6D
Tritanopia (blue-blind)
#862143
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #7f186f; /* rgb */ color: rgb(127, 24, 111); /* oklch */ color: oklch(42.0% 0.165 335.5);
Tailwind
colors: {
custom: {
50: '#a86298',
500: '#7f186f',
950: '#000000',
},
}SCSS
$custom: #7f186f; $custom-light: #a86298; $custom-dark: #000000;
JSON
{
"hex": "#7f186f",
"rgb": {
"r": 127,
"g": 24,
"b": 111
},
"hsl": {
"h": 309.32,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.42019,
"c": 0.1653,
"h": 335.5
},
"luminance": 0.06313
}Semantic roles & 50–950 ramp
primary
#7F186F
secondary
#3FB351
accent
#EB583D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E