#7F186B#7F186B
#7F186B is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.8% C 0.162 H 337.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).
Color values
| HEX | #7F186B |
|---|---|
| RGB | rgb(127, 24, 107) |
| HSL | hsl(312, 68%, 30%) |
| HSV | hsv(312, 81%, 50%) |
| CMYK | cmyk(0%, 81.1%, 15.7%, 50.2%) |
| CIE-LAB | lab(29.98, 50.77, -22.84) |
| CIE-LCH | lch(29.98, 55.67, 335.78°) |
| OKLab | oklab(41.8% 0.1501 -0.0621) |
| OKLCH | oklch(41.8% 0.162 337.5) |
| XYZ | xyz(11.7331, 6.2280, 14.4913) |
| Luminance | 0.0623 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Darkish Purple
#751973
ΔE00 3.54
Rich Purple
#720058
ΔE00 4.37
Purple
#800080
ΔE00 5.14
Velvet
#750851
ΔE00 5.50
Darkmagenta
#8B008B
ΔE00 6.26
Grape
#6C3461
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F186B #187F2C
analogous
#5F187F #7F186B #7F1838
triadic
#7F186B #6B7F18 #186B7F
tetradic
#7F186B #7F5F18 #187F2C #18387F
square
#7F186B #7F5F18 #187F2C #18387F
split-complementary
#7F186B #387F18 #187F5F
monochromatic
#1A0516 #4C0E40 #7F186B #B22296 #D938BA
Accessibility & contrast
On white
9.35
#7F186B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#7F186B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F186B
9.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F186B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F186B | 1.00 | 9.35 | 2.25 | 9.35 |
| #FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1C3D6D
Deuteranopia (green-blind)
#414C69
Tritanopia (blue-blind)
#861F40
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #7f186b; /* rgb */ color: rgb(127, 24, 107); /* oklch */ color: oklch(41.8% 0.162 337.5);
Tailwind
colors: {
custom: {
50: '#a86295',
500: '#7f186b',
950: '#000000',
},
}SCSS
$custom: #7f186b; $custom-light: #a86295; $custom-dark: #000000;
JSON
{
"hex": "#7f186b",
"rgb": {
"r": 127,
"g": 24,
"b": 107
},
"hsl": {
"h": 311.65,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.41799,
"c": 0.16246,
"h": 337.5
},
"luminance": 0.06227
}Semantic roles & 50–950 ramp
primary
#7F186B
secondary
#3FB356
accent
#EB5F3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E