#7A38BA#7A38BA
#7A38BA is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.5% C 0.195 H 303.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).
Color values
| HEX | #7A38BA |
|---|---|
| RGB | rgb(122, 56, 186) |
| HSL | hsl(270, 54%, 47%) |
| HSV | hsv(270, 70%, 73%) |
| CMYK | cmyk(34.4%, 69.9%, 0%, 27.1%) |
| CIE-LAB | lab(38.74, 52.76, -57.31) |
| CIE-LCH | lch(38.74, 77.89, 312.63°) |
| OKLab | oklab(49.53% 0.1064 -0.1631) |
| OKLCH | oklch(49.53% 0.195 303.1) |
| XYZ | xyz(18.3011, 10.5111, 47.5095) |
| Luminance | 0.1051 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Bluey Purple
#6241C7
ΔE00 5.27
Darkorchid
#9932CC
ΔE00 5.65
Blueviolet
#8A2BE2
ΔE00 5.69
Rebeccapurple
#663399
ΔE00 5.91
Darkviolet
#9400D3
ΔE00 5.95
Burple
#6832E3
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7A38BA #78BA38
analogous
#3938BA #7A38BA #BA38B9
triadic
#7A38BA #BA7A38 #38BA7A
tetradic
#7A38BA #BA3938 #78BA38 #38B9BA
square
#7A38BA #BA3938 #78BA38 #38B9BA
split-complementary
#7A38BA #B9BA38 #38BA39
monochromatic
#3C1C5C #5B2A8B #7A38BA #9860CF #B78FDD
Accessibility & contrast
On white
6.77
#7A38BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.10
#7A38BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7A38BA
6.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7A38BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7A38BA | 1.00 | 6.77 | 3.10 | 6.77 |
| #FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005ABE
Deuteranopia (green-blind)
#005BB7
Tritanopia (blue-blind)
#6D5675
Achromatopsia (no color)
#5B5B5B
Design tokens & code
CSS
--color: #7a38ba; /* rgb */ color: rgb(122, 56, 186); /* oklch */ color: oklch(49.5% 0.195 303.1);
Tailwind
colors: {
custom: {
50: '#a674d0',
500: '#7a38ba',
950: '#000000',
},
}SCSS
$custom: #7a38ba; $custom-light: #a674d0; $custom-dark: #000000;
JSON
{
"hex": "#7a38ba",
"rgb": {
"r": 122,
"g": 56,
"b": 186
},
"hsl": {
"h": 270.462,
"s": 53.719,
"l": 47.451
},
"oklch": {
"l": 0.49528,
"c": 0.19469,
"h": 303.1
},
"luminance": 0.10511
}Semantic roles & 50–950 ramp
primary
#7A38BA
secondary
#A6C886
accent
#DD4B93
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100814
muted
#7F7B82