#8E17B4#8E17B4

#8E17B4 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 48.9% C 0.226 H 315.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#8E17B4
RGBrgb(142, 23, 180)
HSLhsl(285, 77%, 40%)
HSVhsv(285, 87%, 71%)
CMYKcmyk(21.1%, 87.2%, 0%, 29.4%)
CIE-LABlab(37.22, 66.48, -56.09)
CIE-LCHlch(37.22, 86.98, 319.84°)
OKLaboklab(48.91% 0.161 -0.1586)
OKLCHoklch(48.91% 0.226 315.4)
XYZxyz(19.6986, 9.6597, 43.9980)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E17B4 #3DB417
analogous
#4017B4 #8E17B4 #B4178B
triadic
#8E17B4 #B48E17 #17B48E
tetradic
#8E17B4 #B44017 #3DB417 #178BB4
square
#8E17B4 #B44017 #3DB417 #178BB4
split-complementary
#8E17B4 #8BB417 #17B440
monochromatic
#380947 #63107E #8E17B4 #B525E3 #C85BEA

Accessibility & contrast

On white

7.16
#8E17B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8E17B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E17B4
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E17B4#FFFFFF#000000##FFFFFF
##8E17B41.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#095AB1
Tritanopia (blue-blind)
#8B426B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e17b4;
/* rgb */ color: rgb(142, 23, 180);
/* oklch */ color: oklch(48.9% 0.226 315.4);
Tailwind
colors: {
  custom: {
    50: '#b468cb',
    500: '#8e17b4',
    950: '#000000',
  },
}
SCSS
$custom: #8e17b4;
$custom-light: #b468cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e17b4",
  "rgb": {
    "r": 142,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 285.478,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48914,
    "c": 0.22601,
    "h": 315.4
  },
  "luminance": 0.09659
}

Semantic roles & 50–950 ramp

primary
#8E17B4
secondary
#75CE59
accent
#F43462
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8E17B4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8E17B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva