#8A38B8#8A38B8
#8A38B8 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.197 H 310.6°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38B8 |
|---|---|
| RGB | rgb(138, 56, 184) |
| HSL | hsl(278, 53%, 47%) |
| HSV | hsv(278, 70%, 72%) |
| CMYK | cmyk(25%, 69.6%, 0%, 27.8%) |
| CIE-LAB | lab(40.72, 55.58, -52.83) |
| CIE-LCH | lch(40.72, 76.68, 316.45°) |
| OKLab | oklab(51.35% 0.1282 -0.1493) |
| OKLCH | oklch(51.35% 0.197 310.6) |
| XYZ | xyz(20.5455, 11.6928, 46.5127) |
| Luminance | 0.1169 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.52
Purply
#983FB2
ΔE00 3.84
Darkviolet
#9400D3
ΔE00 5.45
Blueviolet
#8A2BE2
ΔE00 6.00
Barney
#AC1DB8
ΔE00 6.24
Purple (survey)
#7E1E9C
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38B8 #66B838
analogous
#4A38B8 #8A38B8 #B838A6
triadic
#8A38B8 #B88A38 #38B88A
tetradic
#8A38B8 #B84A38 #66B838 #38A6B8
square
#8A38B8 #B84A38 #66B838 #38A6B8
split-complementary
#8A38B8 #A6B838 #38B84A
monochromatic
#441B5A #672A89 #8A38B8 #A65FCE #C08EDD
Accessibility & contrast
On white
6.29
#8A38B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#8A38B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38B8
6.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38B8 | 1.00 | 6.29 | 3.34 | 6.29 |
| #FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#2561B5
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a38b8; /* rgb */ color: rgb(138, 56, 184); /* oklch */ color: oklch(51.3% 0.197 310.6);
Tailwind
colors: {
custom: {
50: '#b075ce',
500: '#8a38b8',
950: '#000000',
},
}SCSS
$custom: #8a38b8; $custom-light: #b075ce; $custom-dark: #000000;
JSON
{
"hex": "#8a38b8",
"rgb": {
"r": 138,
"g": 56,
"b": 184
},
"hsl": {
"h": 278.438,
"s": 53.333,
"l": 47.059
},
"oklch": {
"l": 0.51349,
"c": 0.19685,
"h": 310.6
},
"luminance": 0.11692
}Semantic roles & 50–950 ramp
primary
#8A38B8
secondary
#9DC785
accent
#DD4B7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82