#8E2797#8E2797
#8E2797 is a mid, vivid purple. Relative luminance 0.094; OKLCH L 48.0% C 0.189 H 324.5°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).
Color values
| HEX | #8E2797 |
|---|---|
| RGB | rgb(142, 39, 151) |
| HSL | hsl(295, 59%, 37%) |
| HSV | hsv(295, 74%, 59%) |
| CMYK | cmyk(6%, 74.2%, 0%, 40.8%) |
| CIE-LAB | lab(36.81, 56.62, -39.34) |
| CIE-LCH | lch(36.81, 68.95, 325.21°) |
| OKLab | oklab(48% 0.1534 -0.1096) |
| OKLCH | oklch(48% 0.189 324.5) |
| XYZ | xyz(17.4663, 9.4373, 30.1738) |
| Luminance | 0.0944 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.10
Barney Purple
#A00498
ΔE00 3.51
Darkmagenta
#8B008B
ΔE00 3.98
Purple (survey)
#7E1E9C
ΔE00 4.27
Purple
#800080
ΔE00 5.89
Purply
#983FB2
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8E2797 #309727
analogous
#562797 #8E2797 #972768
triadic
#8E2797 #978E27 #27978E
tetradic
#8E2797 #975627 #309727 #276897
square
#8E2797 #975627 #309727 #276897
split-complementary
#8E2797 #689727 #279756
monochromatic
#330E36 #601A66 #8E2797 #BC34C8 #CD62D6
Accessibility & contrast
On white
7.27
#8E2797 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.89
#8E2797 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #8E2797
7.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8E2797 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8E2797 | 1.00 | 7.27 | 2.89 | 7.27 |
| #FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#3D5B94
Tritanopia (blue-blind)
#913B5D
Achromatopsia (no color)
#575757
Design tokens & code
CSS
--color: #8e2797; /* rgb */ color: rgb(142, 39, 151); /* oklch */ color: oklch(48.0% 0.189 324.5);
Tailwind
colors: {
custom: {
50: '#b36cb6',
500: '#8e2797',
950: '#000000',
},
}SCSS
$custom: #8e2797; $custom-light: #b36cb6; $custom-dark: #000000;
JSON
{
"hex": "#8e2797",
"rgb": {
"r": 142,
"g": 39,
"b": 151
},
"hsl": {
"h": 295.179,
"s": 58.947,
"l": 37.255
},
"oklch": {
"l": 0.48001,
"c": 0.18851,
"h": 324.5
},
"luminance": 0.09436
}Semantic roles & 50–950 ramp
primary
#8E2797
secondary
#65BC5E
accent
#E24652
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80