#8E2298#8E2298

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

Color values

HEX#8E2298
RGBrgb(142, 34, 152)
HSLhsl(295, 63%, 36%)
HSVhsv(295, 78%, 60%)
CMYKcmyk(6.6%, 77.6%, 0%, 40.4%)
CIE-LABlab(36.30, 58.46, -40.77)
CIE-LCHlch(36.30, 71.27, 325.11°)
OKLaboklab(47.65% 0.1579 -0.1137)
OKLCHoklch(47.65% 0.195 324.2)
XYZxyz(17.3944, 9.1629, 30.5521)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2298 #2C9822
analogous
#532298 #8E2298 #982267
triadic
#8E2298 #988E22 #22988E
tetradic
#8E2298 #985322 #2C9822 #226798
square
#8E2298 #985322 #2C9822 #226798
split-complementary
#8E2298 #679822 #229853
monochromatic
#310C34 #5F1766 #8E2298 #BD2DCA #CF5ADA

Accessibility & contrast

On white

7.41
#8E2298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2298
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2298#FFFFFF#000000##FFFFFF
##8E22981.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2298;
/* rgb */ color: rgb(142, 34, 152);
/* oklch */ color: oklch(47.7% 0.195 324.2);
Tailwind
colors: {
  custom: {
    50: '#b36ab7',
    500: '#8e2298',
    950: '#000000',
  },
}
SCSS
$custom: #8e2298;
$custom-light: #b36ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2298",
  "rgb": {
    "r": 142,
    "g": 34,
    "b": 152
  },
  "hsl": {
    "h": 294.915,
    "s": 63.441,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47653,
    "c": 0.19458,
    "h": 324.2
  },
  "luminance": 0.09162
}

Semantic roles & 50–950 ramp

primary
#8E2298
secondary
#60BE57
accent
#E6414F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2298

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

Preview Lab → · Contrast checker → · Palette generator →

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