#7F3199#7F3199
#7F3199 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.0% C 0.171 H 316.5°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).
Color values
| HEX | #7F3199 |
|---|---|
| RGB | rgb(127, 49, 153) |
| HSL | hsl(285, 51%, 40%) |
| HSV | hsv(285, 68%, 60%) |
| CMYK | cmyk(17%, 68%, 0%, 40%) |
| CIE-LAB | lab(36.00, 49.61, -41.98) |
| CIE-LCH | lch(36.00, 64.99, 319.76°) |
| OKLab | oklab(46.99% 0.1243 -0.1178) |
| OKLCH | oklch(46.99% 0.171 316.5) |
| XYZ | xyz(15.5996, 9.0092, 31.0480) |
| Luminance | 0.0901 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.11
Rebeccapurple
#663399
ΔE00 5.19
Warm Purple
#952E8F
ΔE00 5.68
Darkmagenta
#8B008B
ΔE00 5.83
Purply
#983FB2
ΔE00 6.65
Barney Purple
#A00498
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F3199 #4B9931
analogous
#4B3199 #7F3199 #99317F
triadic
#7F3199 #997F31 #31997F
tetradic
#7F3199 #994B31 #4B9931 #317F99
square
#7F3199 #994B31 #4B9931 #317F99
split-complementary
#7F3199 #7F9931 #31994B
monochromatic
#32133C #59226B #7F3199 #A344C3 #BA72D2
Accessibility & contrast
On white
7.50
#7F3199 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.80
#7F3199 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F3199
7.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F3199 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F3199 | 1.00 | 7.50 | 2.80 | 7.50 |
| #FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00509C
Deuteranopia (green-blind)
#325797
Tritanopia (blue-blind)
#7E4561
Achromatopsia (no color)
#555555
Design tokens & code
CSS
--color: #7f3199; /* rgb */ color: rgb(127, 49, 153); /* oklch */ color: oklch(47.0% 0.171 316.5);
Tailwind
colors: {
custom: {
50: '#a76fb8',
500: '#7f3199',
950: '#000000',
},
}SCSS
$custom: #7f3199; $custom-light: #a76fb8; $custom-dark: #000000;
JSON
{
"hex": "#7f3199",
"rgb": {
"r": 127,
"g": 49,
"b": 153
},
"hsl": {
"h": 285,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.46989,
"c": 0.17127,
"h": 316.5
},
"luminance": 0.09009
}Semantic roles & 50–950 ramp
primary
#7F3199
secondary
#7FBA6C
accent
#DB4D70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80