#7F2BAE#7F2BAE
#7F2BAE is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.8% C 0.199 H 310.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).
Color values
| HEX | #7F2BAE |
|---|---|
| RGB | rgb(127, 43, 174) |
| HSL | hsl(278, 60%, 43%) |
| HSV | hsv(278, 75%, 68%) |
| CMYK | cmyk(27%, 75.3%, 0%, 31.8%) |
| CIE-LAB | lab(36.55, 56.61, -53.73) |
| CIE-LCH | lch(36.55, 78.05, 316.50°) |
| OKLab | oklab(47.84% 0.1281 -0.1523) |
| OKLCH | oklch(47.84% 0.199 310.1) |
| XYZ | xyz(17.2547, 9.2961, 40.9216) |
| Luminance | 0.0930 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.54
Rebeccapurple
#663399
ΔE00 5.15
Darkviolet
#9400D3
ΔE00 5.68
Darkorchid
#9932CC
ΔE00 6.42
Purply
#983FB2
ΔE00 6.81
Blueviolet
#8A2BE2
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F2BAE #5AAE2B
analogous
#3D2BAE #7F2BAE #AE2B9C
triadic
#7F2BAE #AE7F2B #2BAE7F
tetradic
#7F2BAE #AE3D2B #5AAE2B #2B9CAE
square
#7F2BAE #AE3D2B #5AAE2B #2B9CAE
split-complementary
#7F2BAE #9CAE2B #2BAE3D
monochromatic
#37134C #5B1F7D #7F2BAE #9F45D1 #B876DD
Accessibility & contrast
On white
7.34
#7F2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.86
#7F2BAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7F2BAE
7.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F2BAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F2BAE | 1.00 | 7.34 | 2.86 | 7.34 |
| #FFFFFF | 7.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0757AB
Tritanopia (blue-blind)
#784A6B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7f2bae; /* rgb */ color: rgb(127, 43, 174); /* oklch */ color: oklch(47.8% 0.199 310.1);
Tailwind
colors: {
custom: {
50: '#a96dc7',
500: '#7f2bae',
950: '#000000',
},
}SCSS
$custom: #7f2bae; $custom-light: #a96dc7; $custom-dark: #000000;
JSON
{
"hex": "#7f2bae",
"rgb": {
"r": 127,
"g": 43,
"b": 174
},
"hsl": {
"h": 278.473,
"s": 60.369,
"l": 42.549
},
"oklch": {
"l": 0.47836,
"c": 0.199,
"h": 310.1
},
"luminance": 0.09296
}Semantic roles & 50–950 ramp
primary
#7F2BAE
secondary
#8EC570
accent
#E4447D
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82