#8E2B99#8E2B99

#8E2B99 is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.186 H 323.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#8E2B99
RGBrgb(142, 43, 153)
HSLhsl(294, 56%, 38%)
HSVhsv(294, 72%, 60%)
CMYKcmyk(7.2%, 71.9%, 0%, 40%)
CIE-LABlab(37.44, 55.53, -39.54)
CIE-LCHlch(37.44, 68.18, 324.55°)
OKLaboklab(48.49% 0.1493 -0.1102)
OKLCHoklch(48.49% 0.186 323.6)
XYZxyz(17.7685, 9.7795, 31.0825)
Luminance0.0978 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B99 #36992B
analogous
#572B99 #8E2B99 #992B6D
triadic
#8E2B99 #998E2B #2B998E
tetradic
#8E2B99 #99572B #36992B #2B6D99
square
#8E2B99 #99572B #36992B #2B6D99
split-complementary
#8E2B99 #6D992B #2B9957
monochromatic
#351039 #621E69 #8E2B99 #B93AC8 #CA69D5

Accessibility & contrast

On white

7.11
#8E2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8E2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B99
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B99#FFFFFF#000000##FFFFFF
##8E2B991.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04519C
Deuteranopia (green-blind)
#3E5C96
Tritanopia (blue-blind)
#903E5F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e2b99;
/* rgb */ color: rgb(142, 43, 153);
/* oklch */ color: oklch(48.5% 0.186 323.6);
Tailwind
colors: {
  custom: {
    50: '#b26eb7',
    500: '#8e2b99',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b99;
$custom-light: #b26eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b99",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 294,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.48491,
    "c": 0.1856,
    "h": 323.6
  },
  "luminance": 0.09778
}

Semantic roles & 50–950 ramp

primary
#8E2B99
secondary
#6DBC64
accent
#DF4857
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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