#8938B1#8938B1
#8938B1 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.7% C 0.190 H 312.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).
Color values
| HEX | #8938B1 |
|---|---|
| RGB | rgb(137, 56, 177) |
| HSL | hsl(280, 52%, 46%) |
| HSV | hsv(280, 68%, 69%) |
| CMYK | cmyk(22.6%, 68.4%, 0%, 30.6%) |
| CIE-LAB | lab(40.12, 53.84, -49.68) |
| CIE-LCH | lch(40.12, 73.26, 317.30°) |
| OKLab | oklab(50.74% 0.1276 -0.1401) |
| OKLCH | oklch(50.74% 0.19 312.3) |
| XYZ | xyz(19.6651, 11.3216, 42.7358) |
| Luminance | 0.1132 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.64
Darkorchid
#9932CC
ΔE00 4.43
Purple (survey)
#7E1E9C
ΔE00 5.86
Darkviolet
#9400D3
ΔE00 6.15
Barney
#AC1DB8
ΔE00 6.20
Royal Purple
#7851A9
ΔE00 6.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8938B1 #60B138
analogous
#4C38B1 #8938B1 #B1389C
triadic
#8938B1 #B18938 #38B189
tetradic
#8938B1 #B14C38 #60B138 #389CB1
square
#8938B1 #B14C38 #60B138 #389CB1
split-complementary
#8938B1 #9CB138 #38B14C
monochromatic
#411B54 #652983 #8938B1 #A65BCB #BF8ADA
Accessibility & contrast
On white
6.43
#8938B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#8938B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8938B1
6.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8938B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8938B1 | 1.00 | 6.43 | 3.26 | 6.43 |
| #FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005AB5
Deuteranopia (green-blind)
#2C60AE
Tritanopia (blue-blind)
#845170
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8938b1; /* rgb */ color: rgb(137, 56, 177); /* oklch */ color: oklch(50.7% 0.190 312.3);
Tailwind
colors: {
custom: {
50: '#af75c9',
500: '#8938b1',
950: '#000000',
},
}SCSS
$custom: #8938b1; $custom-light: #af75c9; $custom-dark: #000000;
JSON
{
"hex": "#8938b1",
"rgb": {
"r": 137,
"g": 56,
"b": 177
},
"hsl": {
"h": 280.165,
"s": 51.931,
"l": 45.686
},
"oklch": {
"l": 0.50737,
"c": 0.18954,
"h": 312.3
},
"luminance": 0.11321
}Semantic roles & 50–950 ramp
primary
#8938B1
secondary
#97C481
accent
#DB4C7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82