#7E38BA#7E38BA
#7E38BA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 50.0% C 0.196 H 304.9°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).
Color values
| HEX | #7E38BA |
|---|---|
| RGB | rgb(126, 56, 186) |
| HSL | hsl(272, 54%, 47%) |
| HSV | hsv(272, 70%, 73%) |
| CMYK | cmyk(32.3%, 69.9%, 0%, 27.1%) |
| CIE-LAB | lab(39.26, 53.56, -56.45) |
| CIE-LCH | lch(39.26, 77.81, 313.49°) |
| OKLab | oklab(50.01% 0.1119 -0.1604) |
| OKLCH | oklch(50.01% 0.196 304.9) |
| XYZ | xyz(18.8793, 10.8092, 47.5366) |
| Luminance | 0.1081 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 5.01
Blueviolet
#8A2BE2
ΔE00 5.54
Darkviolet
#9400D3
ΔE00 5.63
Bluey Purple
#6241C7
ΔE00 5.89
Purply
#983FB2
ΔE00 6.16
Rebeccapurple
#663399
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7E38BA #74BA38
analogous
#3D38BA #7E38BA #BA38B5
triadic
#7E38BA #BA7E38 #38BA7E
tetradic
#7E38BA #BA3D38 #74BA38 #38B5BA
square
#7E38BA #BA3D38 #74BA38 #38B5BA
split-complementary
#7E38BA #B5BA38 #38BA3D
monochromatic
#3E1C5C #5E2A8B #7E38BA #9C60CF #B98FDD
Accessibility & contrast
On white
6.64
#7E38BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.16
#7E38BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7E38BA
6.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7E38BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7E38BA | 1.00 | 6.64 | 3.16 | 6.64 |
| #FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#735675
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #7e38ba; /* rgb */ color: rgb(126, 56, 186); /* oklch */ color: oklch(50.0% 0.196 304.9);
Tailwind
colors: {
custom: {
50: '#a874d0',
500: '#7e38ba',
950: '#000000',
},
}SCSS
$custom: #7e38ba; $custom-light: #a874d0; $custom-dark: #000000;
JSON
{
"hex": "#7e38ba",
"rgb": {
"r": 126,
"g": 56,
"b": 186
},
"hsl": {
"h": 272.308,
"s": 53.719,
"l": 47.451
},
"oklch": {
"l": 0.50005,
"c": 0.19556,
"h": 304.9
},
"luminance": 0.10809
}Semantic roles & 50–950 ramp
primary
#7E38BA
secondary
#A4C886
accent
#DD4B8E
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82