#8A38B7#8A38B7
#8A38B7 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 51.3% C 0.196 H 310.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38B7 |
|---|---|
| RGB | rgb(138, 56, 183) |
| HSL | hsl(279, 53%, 47%) |
| HSV | hsv(279, 69%, 72%) |
| CMYK | cmyk(24.6%, 69.4%, 0%, 28.2%) |
| CIE-LAB | lab(40.66, 55.36, -52.35) |
| CIE-LCH | lch(40.66, 76.19, 316.60°) |
| OKLab | oklab(51.28% 0.1283 -0.1479) |
| OKLCH | oklch(51.28% 0.196 310.9) |
| XYZ | xyz(20.4410, 11.6510, 45.9626) |
| Luminance | 0.1165 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.63
Purply
#983FB2
ΔE00 3.77
Darkviolet
#9400D3
ΔE00 5.54
Blueviolet
#8A2BE2
ΔE00 6.15
Barney
#AC1DB8
ΔE00 6.20
Purple (survey)
#7E1E9C
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38B7 #65B738
analogous
#4B38B7 #8A38B7 #B738A5
triadic
#8A38B7 #B78A38 #38B78A
tetradic
#8A38B7 #B74B38 #65B738 #38A5B7
square
#8A38B7 #B74B38 #65B738 #38A5B7
split-complementary
#8A38B7 #A5B738 #38B74B
monochromatic
#431B59 #672A88 #8A38B7 #A65ECE #C08DDC
Accessibility & contrast
On white
6.31
#8A38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.33
#8A38B7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38B7
6.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38B7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38B7 | 1.00 | 6.31 | 3.33 | 6.31 |
| #FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CBB
Deuteranopia (green-blind)
#2661B4
Tritanopia (blue-blind)
#845373
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a38b7; /* rgb */ color: rgb(138, 56, 183); /* oklch */ color: oklch(51.3% 0.196 310.9);
Tailwind
colors: {
custom: {
50: '#b075cd',
500: '#8a38b7',
950: '#000000',
},
}SCSS
$custom: #8a38b7; $custom-light: #b075cd; $custom-dark: #000000;
JSON
{
"hex": "#8a38b7",
"rgb": {
"r": 138,
"g": 56,
"b": 183
},
"hsl": {
"h": 278.74,
"s": 53.138,
"l": 46.863
},
"oklch": {
"l": 0.51279,
"c": 0.19584,
"h": 310.9
},
"luminance": 0.11651
}Semantic roles & 50–950 ramp
primary
#8A38B7
secondary
#9CC784
accent
#DD4B7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82