#8E1B9E#8E1B9E

#8E1B9E is a mid, highly saturated purple. Relative luminance 0.090; OKLCH L 47.6% C 0.206 H 322.3°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#8E1B9E
RGBrgb(142, 27, 158)
HSLhsl(293, 71%, 36%)
HSVhsv(293, 83%, 62%)
CMYKcmyk(10.1%, 82.9%, 0%, 38%)
CIE-LABlab(35.99, 61.52, -44.90)
CIE-LCHlch(35.99, 76.16, 323.88°)
OKLaboklab(47.56% 0.1627 -0.1258)
OKLCHoklch(47.56% 0.206 322.3)
XYZxyz(17.7182, 9.0043, 33.1459)
Luminance0.0900 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B9E #2B9E1B
analogous
#4D1B9E #8E1B9E #9E1B6D
triadic
#8E1B9E #9E8E1B #1B9E8E
tetradic
#8E1B9E #9E4D1B #2B9E1B #1B6D9E
square
#8E1B9E #9E4D1B #2B9E1B #1B6D9E
split-complementary
#8E1B9E #6D9E1B #1B9E4D
monochromatic
#300935 #5F126A #8E1B9E #BD24D2 #D052E1

Accessibility & contrast

On white

7.50
#8E1B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8E1B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B9E
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B9E#FFFFFF#000000##FFFFFF
##8E1B9E1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#31599B
Tritanopia (blue-blind)
#90385E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e1b9e;
/* rgb */ color: rgb(142, 27, 158);
/* oklch */ color: oklch(47.6% 0.206 322.3);
Tailwind
colors: {
  custom: {
    50: '#b368bb',
    500: '#8e1b9e',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b9e;
$custom-light: #b368bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b9e",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 158
  },
  "hsl": {
    "h": 292.672,
    "s": 70.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47561,
    "c": 0.20565,
    "h": 322.3
  },
  "luminance": 0.09003
}

Semantic roles & 50–950 ramp

primary
#8E1B9E
secondary
#5FC451
accent
#EE3A50
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#120712
muted
#817A81

Preview Lab

Preview with #8E1B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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