#8E1B8A#8E1B8A

#8E1B8A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.3% C 0.190 H 329.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#8E1B8A
RGBrgb(142, 27, 138)
HSLhsl(302, 68%, 33%)
HSVhsv(302, 81%, 56%)
CMYKcmyk(0%, 81%, 2.8%, 44.3%)
CIE-LABlab(34.74, 58.13, -34.66)
CIE-LCHlch(34.74, 67.68, 329.19°)
OKLaboklab(46.28% 0.1643 -0.0959)
OKLCHoklch(46.28% 0.19 329.7)
XYZxyz(16.1346, 8.3709, 24.8058)
Luminance0.0837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B8A #1B8E1F
analogous
#581B8E #8E1B8A #8E1B50
triadic
#8E1B8A #8A8E1B #1B8A8E
tetradic
#8E1B8A #8E581B #1B8E1F #1B508E
square
#8E1B8A #8E581B #1B8E1F #1B508E
split-complementary
#8E1B8A #508E1B #1B8E58
monochromatic
#270726 #5B1158 #8E1B8A #C125BC #DC47D7

Accessibility & contrast

On white

7.85
#8E1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#8E1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B8A
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B8A#FFFFFF#000000##FFFFFF
##8E1B8A1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02488D
Deuteranopia (green-blind)
#405787
Tritanopia (blue-blind)
#932D53
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8e1b8a;
/* rgb */ color: rgb(142, 27, 138);
/* oklch */ color: oklch(46.3% 0.190 329.7);
Tailwind
colors: {
  custom: {
    50: '#b367ac',
    500: '#8e1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b8a;
$custom-light: #b367ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b8a",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 302.087,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.46277,
    "c": 0.1902,
    "h": 329.7
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#8E1B8A
secondary
#47BE4B
accent
#EB433D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8E1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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