#7E2AB0#7E2AB0
#7E2AB0 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.202 H 309.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2AB0 |
|---|---|
| RGB | rgb(126, 42, 176) |
| HSL | hsl(278, 61%, 43%) |
| HSV | hsv(278, 76%, 69%) |
| CMYK | cmyk(28.4%, 76.1%, 0%, 31%) |
| CIE-LAB | lab(36.42, 57.25, -55.14) |
| CIE-LCH | lch(36.42, 79.48, 316.07°) |
| OKLab | oklab(47.76% 0.1273 -0.1565) |
| OKLCH | oklch(47.76% 0.202 309.1) |
| XYZ | xyz(17.2670, 9.2265, 41.9371) |
| Luminance | 0.0923 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.75
Rebeccapurple
#663399
ΔE00 5.17
Darkviolet
#9400D3
ΔE00 5.49
Darkorchid
#9932CC
ΔE00 6.45
Purply
#983FB2
ΔE00 7.11
Blueviolet
#8A2BE2
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2AB0 #5CB02A
analogous
#3B2AB0 #7E2AB0 #B02A9F
triadic
#7E2AB0 #B07E2A #2AB07E
tetradic
#7E2AB0 #B03B2A #5CB02A #2A9FB0
square
#7E2AB0 #B03B2A #5CB02A #2A9FB0
split-complementary
#7E2AB0 #9FB02A #2AB03B
monochromatic
#37124D #5B1E7F #7E2AB0 #9E45D3 #B776DE
Accessibility & contrast
On white
7.38
#7E2AB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.85
#7E2AB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2AB0
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2AB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2AB0 | 1.00 | 7.38 | 2.85 | 7.38 |
| #FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#764A6C
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7e2ab0; /* rgb */ color: rgb(126, 42, 176); /* oklch */ color: oklch(47.8% 0.202 309.1);
Tailwind
colors: {
custom: {
50: '#a86dc8',
500: '#7e2ab0',
950: '#000000',
},
}SCSS
$custom: #7e2ab0; $custom-light: #a86dc8; $custom-dark: #000000;
JSON
{
"hex": "#7e2ab0",
"rgb": {
"r": 126,
"g": 42,
"b": 176
},
"hsl": {
"h": 277.612,
"s": 61.468,
"l": 42.745
},
"oklch": {
"l": 0.4776,
"c": 0.20171,
"h": 309.1
},
"luminance": 0.09226
}Semantic roles & 50–950 ramp
primary
#7E2AB0
secondary
#90C670
accent
#E5437F
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82