#8E2A97#8E2A97

#8E2A97 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.3% C 0.185 H 324.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8E2A97
RGBrgb(142, 42, 151)
HSLhsl(295, 56%, 38%)
HSVhsv(295, 72%, 59%)
CMYKcmyk(6%, 72.2%, 0%, 40.8%)
CIE-LABlab(37.19, 55.54, -38.73)
CIE-LCHlch(37.19, 67.71, 325.11°)
OKLaboklab(48.27% 0.1504 -0.1078)
OKLCHoklch(48.27% 0.185 324.4)
XYZxyz(17.5687, 9.6422, 30.2079)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2A97 #33972A
analogous
#572A97 #8E2A97 #972A69
triadic
#8E2A97 #978E2A #2A978E
tetradic
#8E2A97 #97572A #33972A #2A6997
square
#8E2A97 #97572A #33972A #2A6997
split-complementary
#8E2A97 #69972A #2A9757
monochromatic
#340F37 #611D67 #8E2A97 #BB37C7 #CC67D5

Accessibility & contrast

On white

7.17
#8E2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8E2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E2A97
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2A97#FFFFFF#000000##FFFFFF
##8E2A971.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07509A
Deuteranopia (green-blind)
#3E5C94
Tritanopia (blue-blind)
#913D5E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8e2a97;
/* rgb */ color: rgb(142, 42, 151);
/* oklch */ color: oklch(48.3% 0.185 324.4);
Tailwind
colors: {
  custom: {
    50: '#b26eb6',
    500: '#8e2a97',
    950: '#000000',
  },
}
SCSS
$custom: #8e2a97;
$custom-light: #b26eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2a97",
  "rgb": {
    "r": 142,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 295.046,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.48272,
    "c": 0.18507,
    "h": 324.4
  },
  "luminance": 0.09641
}

Semantic roles & 50–950 ramp

primary
#8E2A97
secondary
#69BB62
accent
#E04855
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8E2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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