#8E2498#8E2498

#8E2498 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.8% C 0.193 H 324.2°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#8E2498
RGBrgb(142, 36, 152)
HSLhsl(295, 62%, 37%)
HSVhsv(295, 76%, 60%)
CMYKcmyk(6.6%, 76.3%, 0%, 40.4%)
CIE-LABlab(36.52, 57.82, -40.41)
CIE-LCHlch(36.52, 70.54, 325.05°)
OKLaboklab(47.81% 0.1561 -0.1127)
OKLCHoklch(47.81% 0.193 324.2)
XYZxyz(17.4532, 9.2806, 30.5717)
Luminance0.0928 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2498 #2E9824
analogous
#542498 #8E2498 #982468
triadic
#8E2498 #988E24 #24988E
tetradic
#8E2498 #985424 #2E9824 #246898
square
#8E2498 #985424 #2E9824 #246898
split-complementary
#8E2498 #689824 #249854
monochromatic
#320D35 #601867 #8E2498 #BC30C9 #CE5ED9

Accessibility & contrast

On white

7.35
#8E2498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#8E2498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2498
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2498#FFFFFF#000000##FFFFFF
##8E24981.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9B
Deuteranopia (green-blind)
#3A5A95
Tritanopia (blue-blind)
#91395D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8e2498;
/* rgb */ color: rgb(142, 36, 152);
/* oklch */ color: oklch(47.8% 0.193 324.2);
Tailwind
colors: {
  custom: {
    50: '#b36bb7',
    500: '#8e2498',
    950: '#000000',
  },
}
SCSS
$custom: #8e2498;
$custom-light: #b36bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2498",
  "rgb": {
    "r": 142,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 294.828,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.47811,
    "c": 0.19256,
    "h": 324.2
  },
  "luminance": 0.0928
}

Semantic roles & 50–950 ramp

primary
#8E2498
secondary
#63BE5A
accent
#E54351
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E2498

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

Preview Lab → · Contrast checker → · Palette generator →

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