#8A38B0#8A38B0
#8A38B0 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 50.8% C 0.189 H 313.1°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38B0 |
|---|---|
| RGB | rgb(138, 56, 176) |
| HSL | hsl(281, 52%, 45%) |
| HSV | hsv(281, 68%, 69%) |
| CMYK | cmyk(21.6%, 68.2%, 0%, 31%) |
| CIE-LAB | lab(40.19, 53.85, -48.96) |
| CIE-LCH | lch(40.19, 72.78, 317.72°) |
| OKLab | oklab(50.8% 0.129 -0.138) |
| OKLCH | oklch(50.8% 0.189 313.1) |
| XYZ | xyz(19.7305, 11.3668, 42.2205) |
| Luminance | 0.1137 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.43
Darkorchid
#9932CC
ΔE00 4.49
Purple (survey)
#7E1E9C
ΔE00 5.85
Barney
#AC1DB8
ΔE00 6.00
Darkviolet
#9400D3
ΔE00 6.28
Medium Purple
#9E43A2
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38B0 #5EB038
analogous
#4E38B0 #8A38B0 #B0389A
triadic
#8A38B0 #B08A38 #38B08A
tetradic
#8A38B0 #B04E38 #5EB038 #389AB0
square
#8A38B0 #B04E38 #5EB038 #389AB0
split-complementary
#8A38B0 #9AB038 #38B04E
monochromatic
#411A53 #662982 #8A38B0 #A75BCB #C089D9
Accessibility & contrast
On white
6.42
#8A38B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#8A38B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38B0
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38B0 | 1.00 | 6.42 | 3.27 | 6.42 |
| #FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB4
Deuteranopia (green-blind)
#2F61AD
Tritanopia (blue-blind)
#86506F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a38b0; /* rgb */ color: rgb(138, 56, 176); /* oklch */ color: oklch(50.8% 0.189 313.1);
Tailwind
colors: {
custom: {
50: '#b075c8',
500: '#8a38b0',
950: '#000000',
},
}SCSS
$custom: #8a38b0; $custom-light: #b075c8; $custom-dark: #000000;
JSON
{
"hex": "#8a38b0",
"rgb": {
"r": 138,
"g": 56,
"b": 176
},
"hsl": {
"h": 281,
"s": 51.724,
"l": 45.49
},
"oklch": {
"l": 0.50799,
"c": 0.1889,
"h": 313.1
},
"luminance": 0.11366
}Semantic roles & 50–950 ramp
primary
#8A38B0
secondary
#96C480
accent
#DB4D7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82