#8E2A88#8E2A88

#8E2A88 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.173 H 330.5°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8E2A88
RGBrgb(142, 42, 136)
HSLhsl(304, 54%, 36%)
HSVhsv(304, 70%, 56%)
CMYKcmyk(0%, 70.4%, 4.2%, 44.3%)
CIE-LABlab(36.34, 52.91, -30.90)
CIE-LCHlch(36.34, 61.28, 329.72°)
OKLaboklab(47.38% 0.1502 -0.0851)
OKLCHoklch(47.38% 0.173 330.5)
XYZxyz(16.4272, 9.1855, 24.1956)
Luminance0.0918 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2A88 #2A8E30
analogous
#622A8E #8E2A88 #8E2A56
triadic
#8E2A88 #888E2A #2A888E
tetradic
#8E2A88 #8E622A #2A8E30 #2A568E
square
#8E2A88 #8E622A #2A8E30 #2A568E
split-complementary
#8E2A88 #568E2A #2A8E62
monochromatic
#300E2E #5F1C5B #8E2A88 #BD38B5 #D162CA

Accessibility & contrast

On white

7.40
#8E2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8E2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2A88
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2A88#FFFFFF#000000##FFFFFF
##8E2A881.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214D8B
Deuteranopia (green-blind)
#475A85
Tritanopia (blue-blind)
#933656
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8e2a88;
/* rgb */ color: rgb(142, 42, 136);
/* oklch */ color: oklch(47.4% 0.173 330.5);
Tailwind
colors: {
  custom: {
    50: '#b26dab',
    500: '#8e2a88',
    950: '#000000',
  },
}
SCSS
$custom: #8e2a88;
$custom-light: #b26dab;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2a88",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 303.6,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47384,
    "c": 0.17264,
    "h": 330.5
  },
  "luminance": 0.09184
}

Semantic roles & 50–950 ramp

primary
#8E2A88
secondary
#5DB663
accent
#DE534A
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8E2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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