#7E30AA#7E30AA
#7E30AA is a mid, vivid violet. Relative luminance 0.095; OKLCH L 47.9% C 0.189 H 310.4°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).
Color values
| HEX | #7E30AA |
|---|---|
| RGB | rgb(126, 48, 170) |
| HSL | hsl(278, 56%, 43%) |
| HSV | hsv(278, 72%, 67%) |
| CMYK | cmyk(25.9%, 71.8%, 0%, 33.3%) |
| CIE-LAB | lab(36.84, 53.48, -50.88) |
| CIE-LCH | lch(36.84, 73.82, 316.43°) |
| OKLab | oklab(47.92% 0.1225 -0.144) |
| OKLCH | oklch(47.92% 0.189 310.4) |
| XYZ | xyz(16.9154, 9.4522, 38.9558) |
| Luminance | 0.0945 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purple (survey)
#7E1E9C
ΔE00 3.62
Rebeccapurple
#663399
ΔE00 4.75
Purply
#983FB2
ΔE00 6.39
Darkviolet
#9400D3
ΔE00 6.44
Darkorchid
#9932CC
ΔE00 6.59
Darkmagenta
#8B008B
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E30AA #5CAA30
analogous
#4130AA #7E30AA #AA3099
triadic
#7E30AA #AA7E30 #30AA7E
tetradic
#7E30AA #AA4130 #5CAA30 #3099AA
square
#7E30AA #AA4130 #5CAA30 #3099AA
split-complementary
#7E30AA #99AA30 #30AA41
monochromatic
#37154B #5B237A #7E30AA #9E4BCC #B77BDA
Accessibility & contrast
On white
7.27
#7E30AA on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#7E30AA on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #7E30AA
7.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E30AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E30AA | 1.00 | 7.27 | 2.89 | 7.27 |
| #FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#1A58A7
Tritanopia (blue-blind)
#784B6A
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #7e30aa; /* rgb */ color: rgb(126, 48, 170); /* oklch */ color: oklch(47.9% 0.189 310.4);
Tailwind
colors: {
custom: {
50: '#a86fc4',
500: '#7e30aa',
950: '#000000',
},
}SCSS
$custom: #7e30aa; $custom-light: #a86fc4; $custom-dark: #000000;
JSON
{
"hex": "#7e30aa",
"rgb": {
"r": 126,
"g": 48,
"b": 170
},
"hsl": {
"h": 278.361,
"s": 55.963,
"l": 42.745
},
"oklch": {
"l": 0.47922,
"c": 0.18902,
"h": 310.4
},
"luminance": 0.09452
}Semantic roles & 50–950 ramp
primary
#7E30AA
secondary
#90C274
accent
#DF497F
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82