#7F226F#7F226F
#7F226F is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.9% C 0.154 H 335.7°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).
Color values
| HEX | #7F226F |
|---|---|
| RGB | rgb(127, 34, 111) |
| HSL | hsl(310, 58%, 32%) |
| HSV | hsv(310, 73%, 50%) |
| CMYK | cmyk(0%, 73.2%, 12.6%, 50.2%) |
| CIE-LAB | lab(31.36, 48.04, -23.24) |
| CIE-LCH | lch(31.36, 53.37, 334.19°) |
| OKLab | oklab(42.86% 0.1406 -0.0634) |
| OKLCH | oklch(42.86% 0.154 335.7) |
| XYZ | xyz(12.1938, 6.8049, 15.7071) |
| Luminance | 0.0680 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Darkish Purple
#751973
ΔE00 3.56
Purple
#800080
ΔE00 5.29
Rich Purple
#720058
ΔE00 5.60
Darkmagenta
#8B008B
ΔE00 6.09
Grape
#6C3461
ΔE00 6.13
Velvet
#750851
ΔE00 6.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F226F #227F32
analogous
#61227F #7F226F #7F2241
triadic
#7F226F #6F7F22 #226F7F
tetradic
#7F226F #7F6122 #227F32 #22417F
square
#7F226F #7F6122 #227F32 #22417F
split-complementary
#7F226F #417F22 #227F61
monochromatic
#1E081B #4F1545 #7F226F #AF2F99 #CF4CB9
Accessibility & contrast
On white
8.90
#7F226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.36
#7F226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F226F
8.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F226F | 1.00 | 8.90 | 2.36 | 8.90 |
| #FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#234171
Deuteranopia (green-blind)
#434F6D
Tritanopia (blue-blind)
#862945
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #7f226f; /* rgb */ color: rgb(127, 34, 111); /* oklch */ color: oklch(42.9% 0.154 335.7);
Tailwind
colors: {
custom: {
50: '#a76698',
500: '#7f226f',
950: '#000000',
},
}SCSS
$custom: #7f226f; $custom-light: #a76698; $custom-dark: #000000;
JSON
{
"hex": "#7f226f",
"rgb": {
"r": 127,
"g": 34,
"b": 111
},
"hsl": {
"h": 310.323,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.4286,
"c": 0.15418,
"h": 335.7
},
"luminance": 0.06804
}Semantic roles & 50–950 ramp
primary
#7F226F
secondary
#4BB25D
accent
#E16147
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E