#7F2272#7F2272
#7F2272 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.0% C 0.156 H 334.2°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2272 |
|---|---|
| RGB | rgb(127, 34, 114) |
| HSL | hsl(308, 58%, 32%) |
| HSV | hsv(308, 73%, 50%) |
| CMYK | cmyk(0%, 73.2%, 10.2%, 50.2%) |
| CIE-LAB | lab(31.51, 48.53, -24.91) |
| CIE-LCH | lch(31.51, 54.55, 332.83°) |
| OKLab | oklab(43.02% 0.1409 -0.0681) |
| OKLCH | oklch(43.02% 0.156 334.2) |
| XYZ | xyz(12.3618, 6.8720, 16.5917) |
| Luminance | 0.0687 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 3.10
Purple
#800080
ΔE00 4.71
Darkmagenta
#8B008B
ΔE00 5.49
Rich Purple
#720058
ΔE00 5.98
Warm Purple
#952E8F
ΔE00 6.32
Grape
#6C3461
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2272 #227F2F
analogous
#5E227F #7F2272 #7F2244
triadic
#7F2272 #727F22 #22727F
tetradic
#7F2272 #7F5E22 #227F2F #22447F
square
#7F2272 #7F5E22 #227F2F #22447F
split-complementary
#7F2272 #447F22 #227F5E
monochromatic
#1E081B #4F1547 #7F2272 #AF2F9D #CF4CBD
Accessibility & contrast
On white
8.85
#7F2272 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.37
#7F2272 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2272
8.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2272 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2272 | 1.00 | 8.85 | 2.37 | 8.85 |
| #FFFFFF | 8.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#204174
Deuteranopia (green-blind)
#414F70
Tritanopia (blue-blind)
#852A47
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #7f2272; /* rgb */ color: rgb(127, 34, 114); /* oklch */ color: oklch(43.0% 0.156 334.2);
Tailwind
colors: {
custom: {
50: '#a7679b',
500: '#7f2272',
950: '#000000',
},
}SCSS
$custom: #7f2272; $custom-light: #a7679b; $custom-dark: #000000;
JSON
{
"hex": "#7f2272",
"rgb": {
"r": 127,
"g": 34,
"b": 114
},
"hsl": {
"h": 308.387,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.43023,
"c": 0.15647,
"h": 334.2
},
"luminance": 0.06871
}Semantic roles & 50–950 ramp
primary
#7F2272
secondary
#4BB25A
accent
#E15C47
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E