#7F2199#7F2199
#7F2199 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.4% C 0.190 H 317.6°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2199 |
|---|---|
| RGB | rgb(127, 33, 153) |
| HSL | hsl(287, 65%, 36%) |
| HSV | hsv(287, 78%, 60%) |
| CMYK | cmyk(17%, 78.4%, 0%, 40%) |
| CIE-LAB | lab(33.77, 55.93, -45.56) |
| CIE-LCH | lch(33.77, 72.14, 320.83°) |
| OKLab | oklab(45.4% 0.1406 -0.1282) |
| OKLCH | oklch(45.4% 0.19 317.6) |
| XYZ | xyz(15.0452, 7.9003, 30.8632) |
| Luminance | 0.0790 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 0.77
Darkmagenta
#8B008B
ΔE00 4.32
Purple
#800080
ΔE00 5.27
Rebeccapurple
#663399
ΔE00 5.59
Barney Purple
#A00498
ΔE00 6.33
Warm Purple
#952E8F
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2199 #3B9921
analogous
#432199 #7F2199 #992177
triadic
#7F2199 #997F21 #21997F
tetradic
#7F2199 #994321 #3B9921 #217799
square
#7F2199 #994321 #3B9921 #217799
split-complementary
#7F2199 #779921 #219943
monochromatic
#2B0B34 #551667 #7F2199 #A92CCB #BF59DB
Accessibility & contrast
On white
8.14
#7F2199 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.58
#7F2199 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2199
8.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2199 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2199 | 1.00 | 8.14 | 2.58 | 8.14 |
| #FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#255296
Tritanopia (blue-blind)
#7E3C5D
Achromatopsia (no color)
#4F4F4F
Design tokens & code
CSS
--color: #7f2199; /* rgb */ color: rgb(127, 33, 153); /* oklch */ color: oklch(45.4% 0.190 317.6);
Tailwind
colors: {
custom: {
50: '#a868b8',
500: '#7f2199',
950: '#000000',
},
}SCSS
$custom: #7f2199; $custom-light: #a868b8; $custom-dark: #000000;
JSON
{
"hex": "#7f2199",
"rgb": {
"r": 127,
"g": 33,
"b": 153
},
"hsl": {
"h": 287,
"s": 64.516,
"l": 36.471
},
"oklch": {
"l": 0.45402,
"c": 0.19029,
"h": 317.6
},
"luminance": 0.079
}Semantic roles & 50–950 ramp
primary
#7F2199
secondary
#6DBF56
accent
#E84065
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80