#8E1A7B#8E1A7B

#8E1A7B is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.3% C 0.180 H 336.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#8E1A7B
RGBrgb(142, 26, 123)
HSLhsl(310, 69%, 33%)
HSVhsv(310, 82%, 56%)
CMYKcmyk(0%, 81.7%, 13.4%, 44.3%)
CIE-LABlab(33.82, 56.07, -26.78)
CIE-LCHlch(33.82, 62.14, 334.47°)
OKLaboklab(45.35% 0.1647 -0.0731)
OKLCHoklch(45.35% 0.18 336.1)
XYZxyz(15.1001, 7.9211, 19.4687)
Luminance0.0792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1A7B #1A8E2D
analogous
#671A8E #8E1A7B #8E1A41
triadic
#8E1A7B #7B8E1A #1A7B8E
tetradic
#8E1A7B #8E671A #1A8E2D #1A418E
square
#8E1A7B #8E671A #1A8E2D #1A418E
split-complementary
#8E1A7B #418E1A #1A8E67
monochromatic
#270721 #5A114E #8E1A7B #C223A8 #DD45C4

Accessibility & contrast

On white

8.13
#8E1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#8E1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1A7B
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1A7B#FFFFFF#000000##FFFFFF
##8E1A7B1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457D
Deuteranopia (green-blind)
#475678
Tritanopia (blue-blind)
#96244A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e1a7b;
/* rgb */ color: rgb(142, 26, 123);
/* oklch */ color: oklch(45.3% 0.180 336.1);
Tailwind
colors: {
  custom: {
    50: '#b366a1',
    500: '#8e1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #8e1a7b;
$custom-light: #b366a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1a7b",
  "rgb": {
    "r": 142,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 309.828,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45347,
    "c": 0.1802,
    "h": 336.1
  },
  "luminance": 0.0792
}

Semantic roles & 50–950 ramp

primary
#8E1A7B
secondary
#45BE59
accent
#EC593C
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8E1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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