#7F38BA#7F38BA
#7F38BA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 50.1% C 0.196 H 305.3°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).
Color values
| HEX | #7F38BA |
|---|---|
| RGB | rgb(127, 56, 186) |
| HSL | hsl(273, 54%, 47%) |
| HSV | hsv(273, 70%, 73%) |
| CMYK | cmyk(31.7%, 69.9%, 0%, 27.1%) |
| CIE-LAB | lab(39.39, 53.76, -56.24) |
| CIE-LCH | lch(39.39, 77.80, 313.71°) |
| OKLab | oklab(50.13% 0.1133 -0.1597) |
| OKLCH | oklch(50.13% 0.196 305.3) |
| XYZ | xyz(19.0275, 10.8857, 47.5436) |
| Luminance | 0.1089 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 4.85
Blueviolet
#8A2BE2
ΔE00 5.52
Darkviolet
#9400D3
ΔE00 5.57
Purply
#983FB2
ΔE00 5.98
Bluey Purple
#6241C7
ΔE00 6.06
Rebeccapurple
#663399
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7F38BA #73BA38
analogous
#3E38BA #7F38BA #BA38B4
triadic
#7F38BA #BA7F38 #38BA7F
tetradic
#7F38BA #BA3E38 #73BA38 #38B4BA
square
#7F38BA #BA3E38 #73BA38 #38B4BA
split-complementary
#7F38BA #B4BA38 #38BA3E
monochromatic
#3F1C5C #5F2A8B #7F38BA #9D60CF #BA8FDD
Accessibility & contrast
On white
6.61
#7F38BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.18
#7F38BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7F38BA
6.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7F38BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7F38BA | 1.00 | 6.61 | 3.18 | 6.61 |
| #FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#005DB7
Tritanopia (blue-blind)
#745675
Achromatopsia (no color)
#5D5D5D
Design tokens & code
CSS
--color: #7f38ba; /* rgb */ color: rgb(127, 56, 186); /* oklch */ color: oklch(50.1% 0.196 305.3);
Tailwind
colors: {
custom: {
50: '#a974d0',
500: '#7f38ba',
950: '#000000',
},
}SCSS
$custom: #7f38ba; $custom-light: #a974d0; $custom-dark: #000000;
JSON
{
"hex": "#7f38ba",
"rgb": {
"r": 127,
"g": 56,
"b": 186
},
"hsl": {
"h": 272.769,
"s": 53.719,
"l": 47.451
},
"oklch": {
"l": 0.50126,
"c": 0.1958,
"h": 305.3
},
"luminance": 0.10886
}Semantic roles & 50–950 ramp
primary
#7F38BA
secondary
#A4C886
accent
#DD4B8D
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82