#8E2197#8E2197

#8E2197 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.5% C 0.195 H 324.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#8E2197
RGBrgb(142, 33, 151)
HSLhsl(295, 64%, 36%)
HSVhsv(295, 78%, 59%)
CMYKcmyk(6%, 78.1%, 0%, 40.8%)
CIE-LABlab(36.13, 58.59, -40.43)
CIE-LCHlch(36.13, 71.19, 325.39°)
OKLaboklab(47.51% 0.1588 -0.1127)
OKLCHoklch(47.51% 0.195 324.6)
XYZxyz(17.2847, 9.0740, 30.1132)
Luminance0.0907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2197 #2A9721
analogous
#532197 #8E2197 #972165
triadic
#8E2197 #978E21 #21978E
tetradic
#8E2197 #975321 #2A9721 #216597
square
#8E2197 #975321 #2A9721 #216597
split-complementary
#8E2197 #659721 #219753
monochromatic
#300B33 #5F1665 #8E2197 #BD2CC9 #D158DA

Accessibility & contrast

On white

7.46
#8E2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8E2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2197
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2197#FFFFFF#000000##FFFFFF
##8E21971.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2197;
/* rgb */ color: rgb(142, 33, 151);
/* oklch */ color: oklch(47.5% 0.195 324.6);
Tailwind
colors: {
  custom: {
    50: '#b36ab6',
    500: '#8e2197',
    950: '#000000',
  },
}
SCSS
$custom: #8e2197;
$custom-light: #b36ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2197",
  "rgb": {
    "r": 142,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 295.424,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47512,
    "c": 0.19476,
    "h": 324.6
  },
  "luminance": 0.09073
}

Semantic roles & 50–950 ramp

primary
#8E2197
secondary
#5DBE55
accent
#E7414D
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2197

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

Preview Lab → · Contrast checker → · Palette generator →

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