#8A38AF#8A38AF
#8A38AF is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.188 H 313.4°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).
Color values
| HEX | #8A38AF |
|---|---|
| RGB | rgb(138, 56, 175) |
| HSL | hsl(281, 52%, 45%) |
| HSV | hsv(281, 68%, 69%) |
| CMYK | cmyk(21.1%, 68%, 0%, 31.4%) |
| CIE-LAB | lab(40.13, 53.63, -48.47) |
| CIE-LCH | lch(40.13, 72.29, 317.89°) |
| OKLab | oklab(50.73% 0.1291 -0.1366) |
| OKLCH | oklch(50.73% 0.188 313.4) |
| XYZ | xyz(19.6319, 11.3274, 41.7014) |
| Luminance | 0.1133 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.40
Darkorchid
#9932CC
ΔE00 4.63
Purple (survey)
#7E1E9C
ΔE00 5.78
Barney
#AC1DB8
ΔE00 5.99
Darkviolet
#9400D3
ΔE00 6.40
Medium Purple
#9E43A2
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A38AF #5DAF38
analogous
#4F38AF #8A38AF #AF3898
triadic
#8A38AF #AF8A38 #38AF8A
tetradic
#8A38AF #AF4F38 #5DAF38 #3898AF
square
#8A38AF #AF4F38 #5DAF38 #3898AF
split-complementary
#8A38AF #98AF38 #38AF4F
monochromatic
#411A52 #652981 #8A38AF #A75ACA #C088D9
Accessibility & contrast
On white
6.43
#8A38AF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.27
#8A38AF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A38AF
6.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A38AF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A38AF | 1.00 | 6.43 | 3.27 | 6.43 |
| #FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB3
Deuteranopia (green-blind)
#3060AC
Tritanopia (blue-blind)
#86506F
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a38af; /* rgb */ color: rgb(138, 56, 175); /* oklch */ color: oklch(50.7% 0.188 313.4);
Tailwind
colors: {
custom: {
50: '#b075c7',
500: '#8a38af',
950: '#000000',
},
}SCSS
$custom: #8a38af; $custom-light: #b075c7; $custom-dark: #000000;
JSON
{
"hex": "#8a38af",
"rgb": {
"r": 138,
"g": 56,
"b": 175
},
"hsl": {
"h": 281.345,
"s": 51.515,
"l": 45.294
},
"oklch": {
"l": 0.50731,
"c": 0.18791,
"h": 313.4
},
"luminance": 0.11327
}Semantic roles & 50–950 ramp
primary
#8A38AF
secondary
#95C380
accent
#DB4D79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82