#8A38B9#8A38B9
#8A38B9 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.4% C 0.198 H 310.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38B9 |
|---|---|
| RGB | rgb(138, 56, 185) |
| HSL | hsl(278, 54%, 47%) |
| HSV | hsv(278, 70%, 73%) |
| CMYK | cmyk(25.4%, 69.7%, 0%, 27.5%) |
| CIE-LAB | lab(40.79, 55.79, -53.31) |
| CIE-LCH | lch(40.79, 77.17, 316.31°) |
| OKLab | oklab(51.42% 0.1281 -0.1507) |
| OKLCH | oklch(51.42% 0.198 310.4) |
| XYZ | xyz(20.6507, 11.7349, 47.0667) |
| Luminance | 0.1173 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.41
Purply
#983FB2
ΔE00 3.92
Darkviolet
#9400D3
ΔE00 5.36
Blueviolet
#8A2BE2
ΔE00 5.84
Barney
#AC1DB8
ΔE00 6.28
Purple (survey)
#7E1E9C
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38B9 #67B938
analogous
#4A38B9 #8A38B9 #B938A7
triadic
#8A38B9 #B98A38 #38B98A
tetradic
#8A38B9 #B94A38 #67B938 #38A7B9
square
#8A38B9 #B94A38 #67B938 #38A7B9
split-complementary
#8A38B9 #A7B938 #38B94A
monochromatic
#441C5B #672A8A #8A38B9 #A65FCF #C08EDD
Accessibility & contrast
On white
6.27
#8A38B9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#8A38B9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38B9
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38B9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38B9 | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBD
Deuteranopia (green-blind)
#2361B6
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a38b9; /* rgb */ color: rgb(138, 56, 185); /* oklch */ color: oklch(51.4% 0.198 310.4);
Tailwind
colors: {
custom: {
50: '#b075cf',
500: '#8a38b9',
950: '#000000',
},
}SCSS
$custom: #8a38b9; $custom-light: #b075cf; $custom-dark: #000000;
JSON
{
"hex": "#8a38b9",
"rgb": {
"r": 138,
"g": 56,
"b": 185
},
"hsl": {
"h": 278.14,
"s": 53.527,
"l": 47.255
},
"oklch": {
"l": 0.51419,
"c": 0.19783,
"h": 310.4
},
"luminance": 0.11734
}Semantic roles & 50–950 ramp
primary
#8A38B9
secondary
#9DC885
accent
#DD4B80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82