#8A38B6#8A38B6
#8A38B6 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.2% C 0.195 H 311.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38B6 |
|---|---|
| RGB | rgb(138, 56, 182) |
| HSL | hsl(279, 53%, 47%) |
| HSV | hsv(279, 69%, 71%) |
| CMYK | cmyk(24.2%, 69.2%, 0%, 28.6%) |
| CIE-LAB | lab(40.59, 55.14, -51.87) |
| CIE-LCH | lch(40.59, 75.70, 316.75°) |
| OKLab | oklab(51.21% 0.1284 -0.1465) |
| OKLCH | oklch(51.21% 0.195 311.2) |
| XYZ | xyz(20.3373, 11.6095, 45.4164) |
| Luminance | 0.1161 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purply
#983FB2
ΔE00 3.70
Darkorchid
#9932CC
ΔE00 3.74
Darkviolet
#9400D3
ΔE00 5.64
Barney
#AC1DB8
ΔE00 6.16
Blueviolet
#8A2BE2
ΔE00 6.31
Purple (survey)
#7E1E9C
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38B6 #64B638
analogous
#4B38B6 #8A38B6 #B638A3
triadic
#8A38B6 #B68A38 #38B68A
tetradic
#8A38B6 #B64B38 #64B638 #38A3B6
square
#8A38B6 #B64B38 #64B638 #38A3B6
split-complementary
#8A38B6 #A3B638 #38B64B
monochromatic
#431B58 #672A87 #8A38B6 #A65ECD #C08DDC
Accessibility & contrast
On white
6.32
#8A38B6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#8A38B6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38B6
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38B6 | 1.00 | 6.32 | 3.32 | 6.32 |
| #FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBA
Deuteranopia (green-blind)
#2861B3
Tritanopia (blue-blind)
#845373
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a38b6; /* rgb */ color: rgb(138, 56, 182); /* oklch */ color: oklch(51.2% 0.195 311.2);
Tailwind
colors: {
custom: {
50: '#b075cd',
500: '#8a38b6',
950: '#000000',
},
}SCSS
$custom: #8a38b6; $custom-light: #b075cd; $custom-dark: #000000;
JSON
{
"hex": "#8a38b6",
"rgb": {
"r": 138,
"g": 56,
"b": 182
},
"hsl": {
"h": 279.048,
"s": 52.941,
"l": 46.667
},
"oklch": {
"l": 0.51209,
"c": 0.19485,
"h": 311.2
},
"luminance": 0.11609
}Semantic roles & 50–950 ramp
primary
#8A38B6
secondary
#9BC684
accent
#DC4B7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82