#8E16B4#8E16B4

#8E16B4 is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.9% C 0.227 H 315.5°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8E16B4
RGBrgb(142, 22, 180)
HSLhsl(286, 78%, 40%)
HSVhsv(286, 88%, 71%)
CMYKcmyk(21.1%, 87.8%, 0%, 29.4%)
CIE-LABlab(37.15, 66.69, -56.21)
CIE-LCHlch(37.15, 87.22, 319.87°)
OKLaboklab(48.86% 0.1615 -0.1589)
OKLCHoklch(48.86% 0.227 315.5)
XYZxyz(19.6791, 9.6207, 43.9915)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E16B4 #3CB416
analogous
#3F16B4 #8E16B4 #B4168B
triadic
#8E16B4 #B48E16 #16B48E
tetradic
#8E16B4 #B43F16 #3CB416 #168BB4
square
#8E16B4 #B43F16 #3CB416 #168BB4
split-complementary
#8E16B4 #8BB416 #16B43F
monochromatic
#380947 #630F7D #8E16B4 #B623E4 #C85AEB

Accessibility & contrast

On white

7.18
#8E16B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8E16B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E16B4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E16B4#FFFFFF#000000##FFFFFF
##8E16B41.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#075AB1
Tritanopia (blue-blind)
#8B416A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e16b4;
/* rgb */ color: rgb(142, 22, 180);
/* oklch */ color: oklch(48.9% 0.227 315.5);
Tailwind
colors: {
  custom: {
    50: '#b468cb',
    500: '#8e16b4',
    950: '#000000',
  },
}
SCSS
$custom: #8e16b4;
$custom-light: #b468cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e16b4",
  "rgb": {
    "r": 142,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 285.57,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48864,
    "c": 0.22662,
    "h": 315.5
  },
  "luminance": 0.0962
}

Semantic roles & 50–950 ramp

primary
#8E16B4
secondary
#74CE58
accent
#F53362
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8E16B4

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

Preview Lab → · Contrast checker → · Palette generator →

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