#8E2398#8E2398

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

Color values

HEX#8E2398
RGBrgb(142, 35, 152)
HSLhsl(295, 63%, 37%)
HSVhsv(295, 77%, 60%)
CMYKcmyk(6.6%, 77%, 0%, 40.4%)
CIE-LABlab(36.41, 58.14, -40.59)
CIE-LCHlch(36.41, 70.91, 325.08°)
OKLaboklab(47.73% 0.157 -0.1132)
OKLCHoklch(47.73% 0.194 324.2)
XYZxyz(17.4234, 9.2210, 30.5618)
Luminance0.0922 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2398 #2D9823
analogous
#542398 #8E2398 #982368
triadic
#8E2398 #988E23 #23988E
tetradic
#8E2398 #985423 #2D9823 #236898
square
#8E2398 #985423 #2D9823 #236898
split-complementary
#8E2398 #689823 #239854
monochromatic
#310C35 #601866 #8E2398 #BC2ECA #CF5CD9

Accessibility & contrast

On white

7.38
#8E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2398
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2398#FFFFFF#000000##FFFFFF
##8E23981.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#3A5A95
Tritanopia (blue-blind)
#91395D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2398;
/* rgb */ color: rgb(142, 35, 152);
/* oklch */ color: oklch(47.7% 0.194 324.2);
Tailwind
colors: {
  custom: {
    50: '#b36bb7',
    500: '#8e2398',
    950: '#000000',
  },
}
SCSS
$custom: #8e2398;
$custom-light: #b36bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2398",
  "rgb": {
    "r": 142,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 294.872,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47731,
    "c": 0.19359,
    "h": 324.2
  },
  "luminance": 0.0922
}

Semantic roles & 50–950 ramp

primary
#8E2398
secondary
#61BE59
accent
#E64250
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2398

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

Preview Lab → · Contrast checker → · Palette generator →

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