#7E2BAE#7E2BAE
#7E2BAE is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.7% C 0.199 H 309.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2BAE |
|---|---|
| RGB | rgb(126, 43, 174) |
| HSL | hsl(278, 60%, 43%) |
| HSV | hsv(278, 75%, 68%) |
| CMYK | cmyk(27.6%, 75.3%, 0%, 31.8%) |
| CIE-LAB | lab(36.40, 56.42, -53.97) |
| CIE-LCH | lch(36.40, 78.08, 316.27°) |
| OKLab | oklab(47.7% 0.1268 -0.153) |
| OKLCH | oklch(47.7% 0.199 309.6) |
| XYZ | xyz(17.1065, 9.2197, 40.9146) |
| Luminance | 0.0922 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.56
Rebeccapurple
#663399
ΔE00 5.02
Darkviolet
#9400D3
ΔE00 5.74
Darkorchid
#9932CC
ΔE00 6.54
Purply
#983FB2
ΔE00 6.97
Blueviolet
#8A2BE2
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2BAE #5BAE2B
analogous
#3C2BAE #7E2BAE #AE2B9D
triadic
#7E2BAE #AE7E2B #2BAE7E
tetradic
#7E2BAE #AE3C2B #5BAE2B #2B9DAE
square
#7E2BAE #AE3C2B #5BAE2B #2B9DAE
split-complementary
#7E2BAE #9DAE2B #2BAE3C
monochromatic
#37134C #5A1F7D #7E2BAE #9E45D1 #B776DD
Accessibility & contrast
On white
7.38
#7E2BAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.84
#7E2BAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2BAE
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2BAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2BAE | 1.00 | 7.38 | 2.84 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0357AB
Tritanopia (blue-blind)
#774A6B
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7e2bae; /* rgb */ color: rgb(126, 43, 174); /* oklch */ color: oklch(47.7% 0.199 309.6);
Tailwind
colors: {
custom: {
50: '#a86dc7',
500: '#7e2bae',
950: '#000000',
},
}SCSS
$custom: #7e2bae; $custom-light: #a86dc7; $custom-dark: #000000;
JSON
{
"hex": "#7e2bae",
"rgb": {
"r": 126,
"g": 43,
"b": 174
},
"hsl": {
"h": 278.015,
"s": 60.369,
"l": 42.549
},
"oklch": {
"l": 0.47704,
"c": 0.19871,
"h": 309.6
},
"luminance": 0.09219
}Semantic roles & 50–950 ramp
primary
#7E2BAE
secondary
#8FC570
accent
#E4447F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100813
muted
#7F7B82