#8E2397#8E2397

#8E2397 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.7% C 0.193 H 324.6°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8E2397
RGBrgb(142, 35, 151)
HSLhsl(295, 62%, 36%)
HSVhsv(295, 77%, 59%)
CMYKcmyk(6%, 76.8%, 0%, 40.8%)
CIE-LABlab(36.34, 57.97, -40.08)
CIE-LCHlch(36.34, 70.48, 325.34°)
OKLaboklab(47.67% 0.1571 -0.1117)
OKLCHoklch(47.67% 0.193 324.6)
XYZxyz(17.3418, 9.1883, 30.1323)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2397 #2C9723
analogous
#542397 #8E2397 #972366
triadic
#8E2397 #978E23 #23978E
tetradic
#8E2397 #975423 #2C9723 #236697
square
#8E2397 #975423 #2C9723 #236697
split-complementary
#8E2397 #669723 #239754
monochromatic
#310C34 #5F1765 #8E2397 #BD2FC9 #CF5BD9

Accessibility & contrast

On white

7.40
#8E2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8E2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2397
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2397#FFFFFF#000000##FFFFFF
##8E23971.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#3B5A94
Tritanopia (blue-blind)
#91385C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2397;
/* rgb */ color: rgb(142, 35, 151);
/* oklch */ color: oklch(47.7% 0.193 324.6);
Tailwind
colors: {
  custom: {
    50: '#b36bb6',
    500: '#8e2397',
    950: '#000000',
  },
}
SCSS
$custom: #8e2397;
$custom-light: #b36bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2397",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 295.345,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47667,
    "c": 0.19277,
    "h": 324.6
  },
  "luminance": 0.09187
}

Semantic roles & 50–950 ramp

primary
#8E2397
secondary
#60BE58
accent
#E5424F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2397

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

Preview Lab → · Contrast checker → · Palette generator →

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