#8E1B82#8E1B82

#8E1B82 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.184 H 333.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8E1B82
RGBrgb(142, 27, 130)
HSLhsl(306, 68%, 33%)
HSVhsv(306, 81%, 56%)
CMYKcmyk(0%, 81%, 8.5%, 44.3%)
CIE-LABlab(34.29, 56.86, -30.42)
CIE-LCHlch(34.29, 64.48, 331.85°)
OKLaboklab(45.81% 0.1642 -0.0836)
OKLCHoklch(45.81% 0.184 333)
XYZxyz(15.5766, 8.1477, 21.8671)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1B82 #1B8E27
analogous
#601B8E #8E1B82 #8E1B48
triadic
#8E1B82 #828E1B #1B828E
tetradic
#8E1B82 #8E601B #1B8E27 #1B488E
square
#8E1B82 #8E601B #1B8E27 #1B488E
split-complementary
#8E1B82 #488E1B #1B8E60
monochromatic
#270724 #5B1153 #8E1B82 #C125B1 #DC47CD

Accessibility & contrast

On white

7.99
#8E1B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8E1B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1B82
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1B82#FFFFFF#000000##FFFFFF
##8E1B821.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144685
Deuteranopia (green-blind)
#44567F
Tritanopia (blue-blind)
#95294E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8e1b82;
/* rgb */ color: rgb(142, 27, 130);
/* oklch */ color: oklch(45.8% 0.184 333.0);
Tailwind
colors: {
  custom: {
    50: '#b367a7',
    500: '#8e1b82',
    950: '#000000',
  },
}
SCSS
$custom: #8e1b82;
$custom-light: #b367a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1b82",
  "rgb": {
    "r": 142,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 306.261,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.45806,
    "c": 0.18429,
    "h": 333
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#8E1B82
secondary
#47BE53
accent
#EB4F3D
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8E1B82

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

Preview Lab → · Contrast checker → · Palette generator →

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