#8A38BB#8A38BB
#8A38BB is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.6% C 0.200 H 309.8°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38BB |
|---|---|
| RGB | rgb(138, 56, 187) |
| HSL | hsl(278, 54%, 48%) |
| HSV | hsv(278, 70%, 73%) |
| CMYK | cmyk(26.2%, 70.1%, 0%, 26.7%) |
| CIE-LAB | lab(40.93, 56.23, -54.26) |
| CIE-LCH | lch(40.93, 78.14, 316.02°) |
| OKLab | oklab(51.56% 0.1279 -0.1535) |
| OKLCH | oklch(51.56% 0.2 309.8) |
| XYZ | xyz(20.8633, 11.8199, 48.1865) |
| Luminance | 0.1182 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.22
Purply
#983FB2
ΔE00 4.08
Darkviolet
#9400D3
ΔE00 5.20
Blueviolet
#8A2BE2
ΔE00 5.54
Barney
#AC1DB8
ΔE00 6.38
Violet (survey)
#9A0EEA
ΔE00 6.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38BB #69BB38
analogous
#4838BB #8A38BB #BB38AA
triadic
#8A38BB #BB8A38 #38BB8A
tetradic
#8A38BB #BB4838 #69BB38 #38AABB
square
#8A38BB #BB4838 #69BB38 #38AABB
split-complementary
#8A38BB #AABB38 #38BB48
monochromatic
#441C5D #672A8C #8A38BB #A661D0 #C190DE
Accessibility & contrast
On white
6.24
#8A38BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#8A38BB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38BB
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38BB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38BB | 1.00 | 6.24 | 3.36 | 6.24 |
| #FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#2062B8
Tritanopia (blue-blind)
#835576
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8a38bb; /* rgb */ color: rgb(138, 56, 187); /* oklch */ color: oklch(51.6% 0.200 309.8);
Tailwind
colors: {
custom: {
50: '#b075d0',
500: '#8a38bb',
950: '#000000',
},
}SCSS
$custom: #8a38bb; $custom-light: #b075d0; $custom-dark: #000000;
JSON
{
"hex": "#8a38bb",
"rgb": {
"r": 138,
"g": 56,
"b": 187
},
"hsl": {
"h": 277.557,
"s": 53.909,
"l": 47.647
},
"oklch": {
"l": 0.5156,
"c": 0.19982,
"h": 309.8
},
"luminance": 0.11819
}Semantic roles & 50–950 ramp
primary
#8A38BB
secondary
#9FC886
accent
#DD4B81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82