#8E1B7D#8E1B7D

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

Color values

HEX#8E1B7D
RGBrgb(142, 27, 125)
HSLhsl(309, 68%, 33%)
HSVhsv(309, 81%, 56%)
CMYKcmyk(0%, 81%, 12%, 44.3%)
CIE-LABlab(34.02, 56.10, -27.72)
CIE-LCHlch(34.02, 62.57, 333.70°)
OKLaboklab(45.52% 0.164 -0.0758)
OKLCHoklch(45.52% 0.181 335.2)
XYZxyz(15.2492, 8.0167, 20.1423)
Luminance0.0801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B7D #1B8E2C
analogous
#651B8E #8E1B7D #8E1B43
triadic
#8E1B7D #7D8E1B #1B7D8E
tetradic
#8E1B7D #8E651B #1B8E2C #1B438E
square
#8E1B7D #8E651B #1B8E2C #1B438E
split-complementary
#8E1B7D #438E1B #1B8E65
monochromatic
#270722 #5B1150 #8E1B7D #C125AA #DC47C6

Accessibility & contrast

On white

8.07
#8E1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E1B7D
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B7D#FFFFFF#000000##FFFFFF
##8E1B7D1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4580
Deuteranopia (green-blind)
#46567A
Tritanopia (blue-blind)
#95264B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1b7d;
/* rgb */ color: rgb(142, 27, 125);
/* oklch */ color: oklch(45.5% 0.181 335.2);
Tailwind
colors: {
  custom: {
    50: '#b366a3',
    500: '#8e1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b7d;
$custom-light: #b366a3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b7d",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 308.87,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45524,
    "c": 0.1807,
    "h": 335.2
  },
  "luminance": 0.08015
}

Semantic roles & 50–950 ramp

primary
#8E1B7D
secondary
#47BE59
accent
#EB573D
background
#FBF6FA
surface
#F6EBF3
border
#D0C6CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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