#8E1F9A#8E1F9A

#8E1F9A is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.6% C 0.199 H 323.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8E1F9A
RGBrgb(142, 31, 154)
HSLhsl(294, 66%, 36%)
HSVhsv(294, 80%, 60%)
CMYKcmyk(7.8%, 79.9%, 0%, 39.6%)
CIE-LABlab(36.11, 59.72, -42.29)
CIE-LCHlch(36.11, 73.17, 324.70°)
OKLaboklab(47.56% 0.1602 -0.1181)
OKLCHoklch(47.56% 0.199 323.6)
XYZxyz(17.4775, 9.0649, 31.3947)
Luminance0.0906 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1F9A #2B9A1F
analogous
#511F9A #8E1F9A #9A1F69
triadic
#8E1F9A #9A8E1F #1F9A8E
tetradic
#8E1F9A #9A511F #2B9A1F #1F699A
square
#8E1F9A #9A511F #2B9A1F #1F699A
split-complementary
#8E1F9A #699A1F #1F9A51
monochromatic
#300A34 #5F1567 #8E1F9A #BD29CD #D056DD

Accessibility & contrast

On white

7.47
#8E1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8E1F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1F9A
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1F9A#FFFFFF#000000##FFFFFF
##8E1F9A1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#365997
Tritanopia (blue-blind)
#90385D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e1f9a;
/* rgb */ color: rgb(142, 31, 154);
/* oklch */ color: oklch(47.6% 0.199 323.6);
Tailwind
colors: {
  custom: {
    50: '#b369b8',
    500: '#8e1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1f9a;
$custom-light: #b369b8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1f9a",
  "rgb": {
    "r": 142,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 294.146,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47561,
    "c": 0.19905,
    "h": 323.6
  },
  "luminance": 0.09064
}

Semantic roles & 50–950 ramp

primary
#8E1F9A
secondary
#5FC154
accent
#E93E4F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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