#8E1F9D#8E1F9D

#8E1F9D is a mid, highly saturated purple. Relative luminance 0.092; OKLCH L 47.8% C 0.201 H 322.5°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#8E1F9D
RGBrgb(142, 31, 157)
HSLhsl(293, 67%, 37%)
HSVhsv(293, 80%, 62%)
CMYKcmyk(9.6%, 80.3%, 0%, 38.4%)
CIE-LABlab(36.30, 60.25, -43.80)
CIE-LCHlch(36.30, 74.49, 323.99°)
OKLaboklab(47.76% 0.1599 -0.1226)
OKLCHoklch(47.76% 0.201 322.5)
XYZxyz(17.7305, 9.1661, 32.7271)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F9D #2E9D1F
analogous
#4F1F9D #8E1F9D #9D1F6D
triadic
#8E1F9D #9D8E1F #1F9D8E
tetradic
#8E1F9D #9D4F1F #2E9D1F #1F6D9D
square
#8E1F9D #9D4F1F #2E9D1F #1F6D9D
split-complementary
#8E1F9D #6D9D1F #1F9D4F
monochromatic
#320B37 #60156A #8E1F9D #BC29D0 #CE58DE

Accessibility & contrast

On white

7.41
#8E1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8E1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F9D
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F9D#FFFFFF#000000##FFFFFF
##8E1F9D1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#34599A
Tritanopia (blue-blind)
#90395F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e1f9d;
/* rgb */ color: rgb(142, 31, 157);
/* oklch */ color: oklch(47.8% 0.201 322.5);
Tailwind
colors: {
  custom: {
    50: '#b369ba',
    500: '#8e1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f9d;
$custom-light: #b369ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f9d",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 292.857,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47759,
    "c": 0.20147,
    "h": 322.5
  },
  "luminance": 0.09165
}

Semantic roles & 50–950 ramp

primary
#8E1F9D
secondary
#63C256
accent
#EA3E52
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8E1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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