#7F2B94#7F2B94
#7F2B94 is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.0% C 0.174 H 318.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2B94 |
|---|---|
| RGB | rgb(127, 43, 148) |
| HSL | hsl(288, 55%, 37%) |
| HSV | hsv(288, 71%, 58%) |
| CMYK | cmyk(14.2%, 70.9%, 0%, 42%) |
| CIE-LAB | lab(34.76, 51.18, -40.93) |
| CIE-LCH | lch(34.76, 65.53, 321.35°) |
| OKLab | oklab(46% 0.1313 -0.1147) |
| OKLCH | oklch(46% 0.174 318.9) |
| XYZ | xyz(14.9609, 8.3786, 28.8404) |
| Luminance | 0.0838 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 2.55
Darkmagenta
#8B008B
ΔE00 4.59
Warm Purple
#952E8F
ΔE00 5.40
Purple
#800080
ΔE00 5.53
Rebeccapurple
#663399
ΔE00 5.64
Barney Purple
#A00498
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2B94 #40942B
analogous
#4A2B94 #7F2B94 #942B75
triadic
#7F2B94 #947F2B #2B947F
tetradic
#7F2B94 #944A2B #40942B #2B7594
square
#7F2B94 #944A2B #40942B #2B7594
split-complementary
#7F2B94 #75942B #2B944A
monochromatic
#2E0F35 #561D65 #7F2B94 #A839C3 #BD67D3
Accessibility & contrast
On white
7.85
#7F2B94 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.68
#7F2B94 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2B94
7.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2B94 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2B94 | 1.00 | 7.85 | 2.68 | 7.85 |
| #FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C97
Deuteranopia (green-blind)
#315492
Tritanopia (blue-blind)
#7F3F5C
Achromatopsia (no color)
#525252
Design tokens & code
CSS
--color: #7f2b94; /* rgb */ color: rgb(127, 43, 148); /* oklch */ color: oklch(46.0% 0.174 318.9);
Tailwind
colors: {
custom: {
50: '#a76cb4',
500: '#7f2b94',
950: '#000000',
},
}SCSS
$custom: #7f2b94; $custom-light: #a76cb4; $custom-dark: #000000;
JSON
{
"hex": "#7f2b94",
"rgb": {
"r": 127,
"g": 43,
"b": 148
},
"hsl": {
"h": 288,
"s": 54.974,
"l": 37.451
},
"oklch": {
"l": 0.45996,
"c": 0.17437,
"h": 318.9
},
"luminance": 0.08378
}Semantic roles & 50–950 ramp
primary
#7F2B94
secondary
#73B962
accent
#DE4967
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80