#8E2198#8E2198

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

Color values

HEX#8E2198
RGBrgb(142, 33, 152)
HSLhsl(295, 64%, 36%)
HSVhsv(295, 78%, 60%)
CMYKcmyk(6.6%, 78.3%, 0%, 40.4%)
CIE-LABlab(36.19, 58.77, -40.94)
CIE-LCHlch(36.19, 71.62, 325.14°)
OKLaboklab(47.58% 0.1587 -0.1142)
OKLCHoklch(47.58% 0.196 324.3)
XYZxyz(17.3662, 9.1066, 30.5427)
Luminance0.0911 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2198 #2B9821
analogous
#532198 #8E2198 #982167
triadic
#8E2198 #988E21 #21988E
tetradic
#8E2198 #985321 #2B9821 #216798
square
#8E2198 #985321 #2B9821 #216798
split-complementary
#8E2198 #679821 #219853
monochromatic
#300B33 #5F1666 #8E2198 #BD2CCA #D059DB

Accessibility & contrast

On white

7.44
#8E2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8E2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2198
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2198#FFFFFF#000000##FFFFFF
##8E21981.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#395995
Tritanopia (blue-blind)
#91385C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2198;
/* rgb */ color: rgb(142, 33, 152);
/* oklch */ color: oklch(47.6% 0.196 324.3);
Tailwind
colors: {
  custom: {
    50: '#b36ab7',
    500: '#8e2198',
    950: '#000000',
  },
}
SCSS
$custom: #8e2198;
$custom-light: #b36ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2198",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 294.958,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47577,
    "c": 0.19557,
    "h": 324.3
  },
  "luminance": 0.09105
}

Semantic roles & 50–950 ramp

primary
#8E2198
secondary
#5FBF56
accent
#E7404E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2198

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

Preview Lab → · Contrast checker → · Palette generator →

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