#8E1B7C#8E1B7C

#8E1B7C is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.5% C 0.180 H 335.6°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#8E1B7C
RGBrgb(142, 27, 124)
HSLhsl(309, 68%, 33%)
HSVhsv(309, 81%, 56%)
CMYKcmyk(0%, 81%, 12.7%, 44.3%)
CIE-LABlab(33.96, 55.95, -27.18)
CIE-LCHlch(33.96, 62.20, 334.09°)
OKLaboklab(45.47% 0.164 -0.0743)
OKLCHoklch(45.47% 0.18 335.6)
XYZxyz(15.1856, 7.9913, 19.8076)
Luminance0.0799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B7C #1B8E2D
analogous
#661B8E #8E1B7C #8E1B43
triadic
#8E1B7C #7C8E1B #1B7C8E
tetradic
#8E1B7C #8E661B #1B8E2D #1B438E
square
#8E1B7C #8E661B #1B8E2D #1B438E
split-complementary
#8E1B7C #438E1B #1B8E66
monochromatic
#270722 #5B114F #8E1B7C #C125A9 #DC47C5

Accessibility & contrast

On white

8.08
#8E1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#8E1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B7C
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B7C#FFFFFF#000000##FFFFFF
##8E1B7C1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457F
Deuteranopia (green-blind)
#475679
Tritanopia (blue-blind)
#95254B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1b7c;
/* rgb */ color: rgb(142, 27, 124);
/* oklch */ color: oklch(45.5% 0.180 335.6);
Tailwind
colors: {
  custom: {
    50: '#b366a2',
    500: '#8e1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b7c;
$custom-light: #b366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b7c",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 309.391,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45469,
    "c": 0.17999,
    "h": 335.6
  },
  "luminance": 0.0799
}

Semantic roles & 50–950 ramp

primary
#8E1B7C
secondary
#47BE5A
accent
#EB583D
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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