#7F2276#7F2276
#7F2276 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.2% C 0.160 H 332.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2276 |
|---|---|
| RGB | rgb(127, 34, 118) |
| HSL | hsl(306, 58%, 32%) |
| HSV | hsv(306, 73%, 50%) |
| CMYK | cmyk(0%, 73.2%, 7.1%, 50.2%) |
| CIE-LAB | lab(31.73, 49.19, -27.10) |
| CIE-LCH | lch(31.73, 56.16, 331.14°) |
| OKLab | oklab(43.25% 0.1412 -0.0745) |
| OKLCH | oklch(43.25% 0.16 332.2) |
| XYZ | xyz(12.5945, 6.9651, 17.8171) |
| Luminance | 0.0696 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Darkish Purple
#751973
ΔE00 2.69
Purple
#800080
ΔE00 4.04
Darkmagenta
#8B008B
ΔE00 4.74
Warm Purple
#952E8F
ΔE00 5.86
Rich Purple
#720058
ΔE00 6.57
Grape
#6C3461
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2276 #227F2B
analogous
#5A227F #7F2276 #7F2248
triadic
#7F2276 #767F22 #22767F
tetradic
#7F2276 #7F5A22 #227F2B #22487F
square
#7F2276 #7F5A22 #227F2B #22487F
split-complementary
#7F2276 #487F22 #227F5A
monochromatic
#1E081C #4F1549 #7F2276 #AF2FA3 #CF4CC2
Accessibility & contrast
On white
8.78
#7F2276 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#7F2276 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2276
8.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2276 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2276 | 1.00 | 8.78 | 2.39 | 8.78 |
| #FFFFFF | 8.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D4278
Deuteranopia (green-blind)
#3F4F74
Tritanopia (blue-blind)
#852C49
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #7f2276; /* rgb */ color: rgb(127, 34, 118); /* oklch */ color: oklch(43.2% 0.160 332.2);
Tailwind
colors: {
custom: {
50: '#a7679e',
500: '#7f2276',
950: '#000000',
},
}SCSS
$custom: #7f2276; $custom-light: #a7679e; $custom-dark: #000000;
JSON
{
"hex": "#7f2276",
"rgb": {
"r": 127,
"g": 34,
"b": 118
},
"hsl": {
"h": 305.806,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.43246,
"c": 0.15961,
"h": 332.2
},
"luminance": 0.06964
}Semantic roles & 50–950 ramp
primary
#7F2276
secondary
#4BB255
accent
#E15647
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E