#8E1D97#8E1D97

#8E1D97 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.2% C 0.198 H 324.7°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8E1D97
RGBrgb(142, 29, 151)
HSLhsl(296, 68%, 35%)
HSVhsv(296, 81%, 59%)
CMYKcmyk(6%, 80.8%, 0%, 40.8%)
CIE-LABlab(35.72, 59.76, -41.08)
CIE-LCHlch(35.72, 72.52, 325.50°)
OKLaboklab(47.23% 0.162 -0.1146)
OKLCHoklch(47.23% 0.198 324.7)
XYZxyz(17.1802, 8.8650, 30.0784)
Luminance0.0886 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1D97 #26971D
analogous
#511D97 #8E1D97 #971D63
triadic
#8E1D97 #978E1D #1D978E
tetradic
#8E1D97 #97511D #26971D #1D6397
square
#8E1D97 #97511D #26971D #1D6397
split-complementary
#8E1D97 #63971D #1D9751
monochromatic
#2D0930 #5E1364 #8E1D97 #BE27CA #D351DE

Accessibility & contrast

On white

7.57
#8E1D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8E1D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1D97
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1D97#FFFFFF#000000##FFFFFF
##8E1D971.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#385894
Tritanopia (blue-blind)
#91355B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8e1d97;
/* rgb */ color: rgb(142, 29, 151);
/* oklch */ color: oklch(47.2% 0.198 324.7);
Tailwind
colors: {
  custom: {
    50: '#b368b6',
    500: '#8e1d97',
    950: '#000000',
  },
}
SCSS
$custom: #8e1d97;
$custom-light: #b368b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1d97",
  "rgb": {
    "r": 142,
    "g": 29,
    "b": 151
  },
  "hsl": {
    "h": 295.574,
    "s": 67.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.47226,
    "c": 0.19845,
    "h": 324.7
  },
  "luminance": 0.08864
}

Semantic roles & 50–950 ramp

primary
#8E1D97
secondary
#58C04F
accent
#EB3D4A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8E1D97

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

Preview Lab → · Contrast checker → · Palette generator →

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