#7F337E#7F337E
#7F337E is a mid, vivid purple. Relative luminance 0.084; OKLCH L 45.6% C 0.142 H 328.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).
Color values
| HEX | #7F337E |
|---|---|
| RGB | rgb(127, 51, 126) |
| HSL | hsl(301, 43%, 35%) |
| HSV | hsv(301, 60%, 50%) |
| CMYK | cmyk(0%, 59.8%, 0.8%, 50.2%) |
| CIE-LAB | lab(34.78, 43.31, -27.33) |
| CIE-LCH | lch(34.78, 51.21, 327.75°) |
| OKLab | oklab(45.6% 0.121 -0.0752) |
| OKLCH | oklch(45.6% 0.142 328.1) |
| XYZ | xyz(13.7019, 8.3869, 20.6318) |
| Luminance | 0.0839 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 4.57
Light Eggplant
#894585
ΔE00 4.90
Darkish Purple
#751973
ΔE00 5.20
Bruise
#7E4071
ΔE00 5.43
Darkmagenta
#8B008B
ΔE00 6.13
Purple
#800080
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F337E #337F34
analogous
#5A337F #7F337E #7F3358
triadic
#7F337E #7E7F33 #337E7F
tetradic
#7F337E #7F5A33 #337F34 #33587F
square
#7F337E #7F5A33 #337F34 #33587F
split-complementary
#7F337E #587F33 #337F5A
monochromatic
#281027 #532153 #7F337E #AB45A9 #C369C2
Accessibility & contrast
On white
7.84
#7F337E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#7F337E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F337E
7.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F337E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F337E | 1.00 | 7.84 | 2.68 | 7.84 |
| #FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#45557C
Tritanopia (blue-blind)
#833C53
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #7f337e; /* rgb */ color: rgb(127, 51, 126); /* oklch */ color: oklch(45.6% 0.142 328.1);
Tailwind
colors: {
custom: {
50: '#a670a3',
500: '#7f337e',
950: '#000000',
},
}SCSS
$custom: #7f337e; $custom-light: #a670a3; $custom-dark: #000000;
JSON
{
"hex": "#7f337e",
"rgb": {
"r": 127,
"g": 51,
"b": 126
},
"hsl": {
"h": 300.789,
"s": 42.697,
"l": 34.902
},
"oklch": {
"l": 0.45596,
"c": 0.14246,
"h": 328.1
},
"luminance": 0.08386
}Semantic roles & 50–950 ramp
primary
#7F337E
secondary
#63AB64
accent
#D25755
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10080F
muted
#7F7B7F