#8E2B9D#8E2B9D

#8E2B9D is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.7% C 0.189 H 322.1°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8E2B9D
RGBrgb(142, 43, 157)
HSLhsl(292, 57%, 39%)
HSVhsv(292, 73%, 62%)
CMYKcmyk(9.6%, 72.6%, 0%, 38.4%)
CIE-LABlab(37.69, 56.27, -41.58)
CIE-LCHlch(37.69, 69.97, 323.54°)
OKLaboklab(48.74% 0.1492 -0.1162)
OKLCHoklch(48.74% 0.189 322.1)
XYZxyz(18.1044, 9.9139, 32.8517)
Luminance0.0991 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2B9D #3A9D2B
analogous
#552B9D #8E2B9D #9D2B73
triadic
#8E2B9D #9D8E2B #2B9D8E
tetradic
#8E2B9D #9D552B #3A9D2B #2B739D
square
#8E2B9D #9D552B #3A9D2B #2B739D
split-complementary
#8E2B9D #739D2B #2B9D55
monochromatic
#37113D #631E6D #8E2B9D #B73CCA #C96CD7

Accessibility & contrast

On white

7.04
#8E2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8E2B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2B9D
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2B9D#FFFFFF#000000##FFFFFF
##8E2B9D1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A0
Deuteranopia (green-blind)
#3B5C9A
Tritanopia (blue-blind)
#904061
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e2b9d;
/* rgb */ color: rgb(142, 43, 157);
/* oklch */ color: oklch(48.7% 0.189 322.1);
Tailwind
colors: {
  custom: {
    50: '#b36eba',
    500: '#8e2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #8e2b9d;
$custom-light: #b36eba;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2b9d",
  "rgb": {
    "r": 142,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 292.105,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48743,
    "c": 0.18905,
    "h": 322.1
  },
  "luminance": 0.09913
}

Semantic roles & 50–950 ramp

primary
#8E2B9D
secondary
#72BD66
accent
#E0485C
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8E2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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