#8938B8#8938B8
#8938B8 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.2% C 0.197 H 310.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).
Color values
| HEX | #8938B8 |
|---|---|
| RGB | rgb(137, 56, 184) |
| HSL | hsl(278, 53%, 47%) |
| HSV | hsv(278, 70%, 72%) |
| CMYK | cmyk(25.5%, 69.6%, 0%, 27.8%) |
| CIE-LAB | lab(40.59, 55.37, -53.06) |
| CIE-LCH | lch(40.59, 76.68, 316.22°) |
| OKLab | oklab(51.22% 0.1269 -0.15) |
| OKLCH | oklch(51.22% 0.197 310.2) |
| XYZ | xyz(20.3808, 11.6078, 46.5050) |
| Luminance | 0.1161 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.62
Purply
#983FB2
ΔE00 4.02
Darkviolet
#9400D3
ΔE00 5.44
Blueviolet
#8A2BE2
ΔE00 5.95
Barney
#AC1DB8
ΔE00 6.41
Purple (survey)
#7E1E9C
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8938B8 #67B838
analogous
#4938B8 #8938B8 #B838A7
triadic
#8938B8 #B88938 #38B889
tetradic
#8938B8 #B84938 #67B838 #38A7B8
square
#8938B8 #B84938 #67B838 #38A7B8
split-complementary
#8938B8 #A7B838 #38B849
monochromatic
#431B5A #662A89 #8938B8 #A55FCE #C08EDD
Accessibility & contrast
On white
6.32
#8938B8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.32
#8938B8 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8938B8
6.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8938B8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8938B8 | 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)
#005CBC
Deuteranopia (green-blind)
#2361B5
Tritanopia (blue-blind)
#835474
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #8938b8; /* rgb */ color: rgb(137, 56, 184); /* oklch */ color: oklch(51.2% 0.197 310.2);
Tailwind
colors: {
custom: {
50: '#b075ce',
500: '#8938b8',
950: '#000000',
},
}SCSS
$custom: #8938b8; $custom-light: #b075ce; $custom-dark: #000000;
JSON
{
"hex": "#8938b8",
"rgb": {
"r": 137,
"g": 56,
"b": 184
},
"hsl": {
"h": 277.969,
"s": 53.333,
"l": 47.059
},
"oklch": {
"l": 0.51222,
"c": 0.19652,
"h": 310.2
},
"luminance": 0.11607
}Semantic roles & 50–950 ramp
primary
#8938B8
secondary
#9DC785
accent
#DD4B81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82