#8E2098#8E2098

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

Color values

HEX#8E2098
RGBrgb(142, 32, 152)
HSLhsl(295, 65%, 36%)
HSVhsv(295, 79%, 60%)
CMYKcmyk(6.6%, 78.9%, 0%, 40.4%)
CIE-LABlab(36.08, 59.07, -41.11)
CIE-LCHlch(36.08, 71.97, 325.17°)
OKLaboklab(47.5% 0.1596 -0.1147)
OKLCHoklch(47.5% 0.197 324.3)
XYZxyz(17.3389, 9.0519, 30.5336)
Luminance0.0905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2098 #2A9820
analogous
#522098 #8E2098 #982066
triadic
#8E2098 #988E20 #20988E
tetradic
#8E2098 #985220 #2A9820 #206698
square
#8E2098 #985220 #2A9820 #206698
split-complementary
#8E2098 #669820 #209852
monochromatic
#300B33 #5F1565 #8E2098 #BD2BCB #D157DC

Accessibility & contrast

On white

7.47
#8E2098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E2098
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2098#FFFFFF#000000##FFFFFF
##8E20981.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2098;
/* rgb */ color: rgb(142, 32, 152);
/* oklch */ color: oklch(47.5% 0.197 324.3);
Tailwind
colors: {
  custom: {
    50: '#b369b7',
    500: '#8e2098',
    950: '#000000',
  },
}
SCSS
$custom: #8e2098;
$custom-light: #b369b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2098",
  "rgb": {
    "r": 142,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 295,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47502,
    "c": 0.19652,
    "h": 324.3
  },
  "luminance": 0.09051
}

Semantic roles & 50–950 ramp

primary
#8E2098
secondary
#5DBF54
accent
#E8404E
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2098

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

Preview Lab → · Contrast checker → · Palette generator →

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