#8E1B7F#8E1B7F

#8E1B7F is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.182 H 334.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#8E1B7F
RGBrgb(142, 27, 127)
HSLhsl(308, 68%, 33%)
HSVhsv(308, 81%, 56%)
CMYKcmyk(0%, 81%, 10.6%, 44.3%)
CIE-LABlab(34.12, 56.40, -28.80)
CIE-LCHlch(34.12, 63.33, 332.95°)
OKLaboklab(45.64% 0.1641 -0.079)
OKLCHoklch(45.64% 0.182 334.3)
XYZxyz(15.3782, 8.0683, 20.8220)
Luminance0.0807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B7F #1B8E2A
analogous
#631B8E #8E1B7F #8E1B45
triadic
#8E1B7F #7F8E1B #1B7F8E
tetradic
#8E1B7F #8E631B #1B8E2A #1B458E
square
#8E1B7F #8E631B #1B8E2A #1B458E
split-complementary
#8E1B7F #458E1B #1B8E63
monochromatic
#270723 #5B1151 #8E1B7F #C125AD #DC47C9

Accessibility & contrast

On white

8.04
#8E1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8E1B7F
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B7F#FFFFFF#000000##FFFFFF
##8E1B7F1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184682
Deuteranopia (green-blind)
#46567C
Tritanopia (blue-blind)
#95274D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #8e1b7f;
/* rgb */ color: rgb(142, 27, 127);
/* oklch */ color: oklch(45.6% 0.182 334.3);
Tailwind
colors: {
  custom: {
    50: '#b367a4',
    500: '#8e1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b7f;
$custom-light: #b367a4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b7f",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 307.826,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45636,
    "c": 0.18213,
    "h": 334.3
  },
  "luminance": 0.08067
}

Semantic roles & 50–950 ramp

primary
#8E1B7F
secondary
#47BE57
accent
#EB543D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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