#8E2297#8E2297

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

Color values

HEX#8E2297
RGBrgb(142, 34, 151)
HSLhsl(295, 63%, 36%)
HSVhsv(295, 77%, 59%)
CMYKcmyk(6%, 77.5%, 0%, 40.8%)
CIE-LABlab(36.23, 58.28, -40.26)
CIE-LCHlch(36.23, 70.84, 325.36°)
OKLaboklab(47.59% 0.158 -0.1123)
OKLCHoklch(47.59% 0.194 324.6)
XYZxyz(17.3128, 9.1303, 30.1226)
Luminance0.0913 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2297 #2B9722
analogous
#542297 #8E2297 #972266
triadic
#8E2297 #978E22 #22978E
tetradic
#8E2297 #975422 #2B9722 #226697
square
#8E2297 #975422 #2B9722 #226697
split-complementary
#8E2297 #669722 #229754
monochromatic
#300C33 #5F1765 #8E2297 #BD2DC9 #D05ADA

Accessibility & contrast

On white

7.43
#8E2297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8E2297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2297
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2297#FFFFFF#000000##FFFFFF
##8E22971.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2297;
/* rgb */ color: rgb(142, 34, 151);
/* oklch */ color: oklch(47.6% 0.194 324.6);
Tailwind
colors: {
  custom: {
    50: '#b36ab6',
    500: '#8e2297',
    950: '#000000',
  },
}
SCSS
$custom: #8e2297;
$custom-light: #b36ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2297",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 295.385,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47589,
    "c": 0.19378,
    "h": 324.6
  },
  "luminance": 0.09129
}

Semantic roles & 50–950 ramp

primary
#8E2297
secondary
#5FBE57
accent
#E6424E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2297

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

Preview Lab → · Contrast checker → · Palette generator →

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