#8E1B7E#8E1B7E

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

Color values

HEX#8E1B7E
RGBrgb(142, 27, 126)
HSLhsl(308, 68%, 33%)
HSVhsv(308, 81%, 56%)
CMYKcmyk(0%, 81%, 11.3%, 44.3%)
CIE-LABlab(34.07, 56.25, -28.26)
CIE-LCHlch(34.07, 62.95, 333.32°)
OKLaboklab(45.58% 0.1641 -0.0774)
OKLCHoklch(45.58% 0.181 334.7)
XYZxyz(15.3134, 8.0424, 20.4805)
Luminance0.0804 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B7E #1B8E2B
analogous
#641B8E #8E1B7E #8E1B44
triadic
#8E1B7E #7E8E1B #1B7E8E
tetradic
#8E1B7E #8E641B #1B8E2B #1B448E
square
#8E1B7E #8E641B #1B8E2B #1B448E
split-complementary
#8E1B7E #448E1B #1B8E64
monochromatic
#270723 #5B1150 #8E1B7E #C125AC #DC47C7

Accessibility & contrast

On white

8.05
#8E1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#8E1B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B7E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B7E#FFFFFF#000000##FFFFFF
##8E1B7E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194581
Deuteranopia (green-blind)
#46567B
Tritanopia (blue-blind)
#95264C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1b7e;
/* rgb */ color: rgb(142, 27, 126);
/* oklch */ color: oklch(45.6% 0.181 334.7);
Tailwind
colors: {
  custom: {
    50: '#b367a4',
    500: '#8e1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b7e;
$custom-light: #b367a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b7e",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 308.348,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.4558,
    "c": 0.18141,
    "h": 334.7
  },
  "luminance": 0.08041
}

Semantic roles & 50–950 ramp

primary
#8E1B7E
secondary
#47BE58
accent
#EB553D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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