#8E1B7B#8E1B7B

#8E1B7B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.179 H 336.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#8E1B7B
RGBrgb(142, 27, 123)
HSLhsl(310, 68%, 33%)
HSVhsv(310, 81%, 56%)
CMYKcmyk(0%, 81%, 13.4%, 44.3%)
CIE-LABlab(33.91, 55.80, -26.63)
CIE-LCHlch(33.91, 61.83, 334.48°)
OKLaboklab(45.42% 0.1639 -0.0727)
OKLCHoklch(45.42% 0.179 336.1)
XYZxyz(15.1227, 7.9661, 19.4762)
Luminance0.0796 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B7B #1B8E2E
analogous
#671B8E #8E1B7B #8E1B41
triadic
#8E1B7B #7B8E1B #1B7B8E
tetradic
#8E1B7B #8E671B #1B8E2E #1B418E
square
#8E1B7B #8E671B #1B8E2E #1B418E
split-complementary
#8E1B7B #418E1B #1B8E67
monochromatic
#270722 #5B114E #8E1B7B #C125A8 #DC47C3

Accessibility & contrast

On white

8.10
#8E1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#8E1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B7B
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B7B#FFFFFF#000000##FFFFFF
##8E1B7B1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457D
Deuteranopia (green-blind)
#475678
Tritanopia (blue-blind)
#96254A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1b7b;
/* rgb */ color: rgb(142, 27, 123);
/* oklch */ color: oklch(45.4% 0.179 336.1);
Tailwind
colors: {
  custom: {
    50: '#b366a1',
    500: '#8e1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b7b;
$custom-light: #b366a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b7b",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 309.913,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45415,
    "c": 0.17929,
    "h": 336.1
  },
  "luminance": 0.07965
}

Semantic roles & 50–950 ramp

primary
#8E1B7B
secondary
#47BE5B
accent
#EB5A3D
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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