#8A38B3#8A38B3
#8A38B3 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.192 H 312.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38B3 |
|---|---|
| RGB | rgb(138, 56, 179) |
| HSL | hsl(280, 52%, 46%) |
| HSV | hsv(280, 69%, 70%) |
| CMYK | cmyk(22.9%, 68.7%, 0%, 29.8%) |
| CIE-LAB | lab(40.39, 54.49, -50.42) |
| CIE-LCH | lch(40.39, 74.24, 317.22°) |
| OKLab | oklab(51% 0.1287 -0.1423) |
| OKLCH | oklch(51% 0.192 312.1) |
| XYZ | xyz(20.0306, 11.4868, 43.8011) |
| Luminance | 0.1149 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.54
Darkorchid
#9932CC
ΔE00 4.10
Darkviolet
#9400D3
ΔE00 5.95
Barney
#AC1DB8
ΔE00 6.06
Purple (survey)
#7E1E9C
ΔE00 6.10
Blueviolet
#8A2BE2
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38B3 #61B338
analogous
#4C38B3 #8A38B3 #B3389E
triadic
#8A38B3 #B38A38 #38B38A
tetradic
#8A38B3 #B34C38 #61B338 #389EB3
square
#8A38B3 #B34C38 #61B338 #389EB3
split-complementary
#8A38B3 #9EB338 #38B34C
monochromatic
#421B56 #662984 #8A38B3 #A75CCC #C08BDB
Accessibility & contrast
On white
6.37
#8A38B3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.30
#8A38B3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38B3
6.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38B3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38B3 | 1.00 | 6.37 | 3.30 | 6.37 |
| #FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.30 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#2B61B0
Tritanopia (blue-blind)
#855271
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a38b3; /* rgb */ color: rgb(138, 56, 179); /* oklch */ color: oklch(51.0% 0.192 312.1);
Tailwind
colors: {
custom: {
50: '#b075ca',
500: '#8a38b3',
950: '#000000',
},
}SCSS
$custom: #8a38b3; $custom-light: #b075ca; $custom-dark: #000000;
JSON
{
"hex": "#8a38b3",
"rgb": {
"r": 138,
"g": 56,
"b": 179
},
"hsl": {
"h": 280,
"s": 52.34,
"l": 46.078
},
"oklch": {
"l": 0.51003,
"c": 0.19187,
"h": 312.1
},
"luminance": 0.11486
}Semantic roles & 50–950 ramp
primary
#8A38B3
secondary
#98C582
accent
#DC4C7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82