#7E2AB4#7E2AB4
#7E2AB4 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 48.1% C 0.206 H 308.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #7E2AB4 |
|---|---|
| RGB | rgb(126, 42, 180) |
| HSL | hsl(277, 62%, 44%) |
| HSV | hsv(277, 77%, 71%) |
| CMYK | cmyk(30%, 76.7%, 0%, 29.4%) |
| CIE-LAB | lab(36.72, 58.12, -57.03) |
| CIE-LCH | lch(36.72, 81.43, 315.54°) |
| OKLab | oklab(48.07% 0.1265 -0.162) |
| OKLCH | oklch(48.07% 0.206 308) |
| XYZ | xyz(17.6686, 9.3871, 44.0523) |
| Luminance | 0.0939 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 4.33
Darkviolet
#9400D3
ΔE00 5.07
Rebeccapurple
#663399
ΔE00 5.48
Darkorchid
#9932CC
ΔE00 6.15
Blueviolet
#8A2BE2
ΔE00 6.64
Purple Blue
#5D21D0
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E2AB4 #60B42A
analogous
#392AB4 #7E2AB4 #B42AA5
triadic
#7E2AB4 #B47E2A #2AB47E
tetradic
#7E2AB4 #B4392A #60B42A #2AA5B4
square
#7E2AB4 #B4392A #60B42A #2AA5B4
split-complementary
#7E2AB4 #A5B42A #2AB439
monochromatic
#391351 #5B1E82 #7E2AB4 #9D47D4 #B779E0
Accessibility & contrast
On white
7.30
#7E2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.88
#7E2AB4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E2AB4
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E2AB4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E2AB4 | 1.00 | 7.30 | 2.88 | 7.30 |
| #FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0057B1
Tritanopia (blue-blind)
#754C6E
Achromatopsia (no color)
#565656
Design tokens & code
CSS
--color: #7e2ab4; /* rgb */ color: rgb(126, 42, 180); /* oklch */ color: oklch(48.1% 0.206 308.0);
Tailwind
colors: {
custom: {
50: '#a96dcb',
500: '#7e2ab4',
950: '#000000',
},
}SCSS
$custom: #7e2ab4; $custom-light: #a96dcb; $custom-dark: #000000;
JSON
{
"hex": "#7e2ab4",
"rgb": {
"r": 126,
"g": 42,
"b": 180
},
"hsl": {
"h": 276.522,
"s": 62.162,
"l": 43.529
},
"oklch": {
"l": 0.48067,
"c": 0.20553,
"h": 308
},
"luminance": 0.09387
}Semantic roles & 50–950 ramp
primary
#7E2AB4
secondary
#94C872
accent
#E54382
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100813
muted
#7F7B82