#8E1182#8E1182

#8E1182 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.192 H 333.0°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8E1182
RGBrgb(142, 17, 130)
HSLhsl(306, 79%, 31%)
HSVhsv(306, 88%, 56%)
CMYKcmyk(0%, 88%, 8.5%, 44.3%)
CIE-LABlab(33.49, 59.18, -31.68)
CIE-LCHlch(33.49, 67.13, 331.84°)
OKLaboklab(45.24% 0.171 -0.0872)
OKLCHoklch(45.24% 0.192 333)
XYZxyz(15.3852, 7.7648, 21.8032)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1182 #118E1D
analogous
#5B118E #8E1182 #8E1143
triadic
#8E1182 #828E11 #11828E
tetradic
#8E1182 #8E5B11 #118E1D #11438E
square
#8E1182 #8E5B11 #118E1D #11438E
split-complementary
#8E1182 #438E11 #118E5B
monochromatic
#21041E #570A50 #8E1182 #C518B4 #E733D5

Accessibility & contrast

On white

8.23
#8E1182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8E1182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1182
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1182#FFFFFF#000000##FFFFFF
##8E11821.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044485
Deuteranopia (green-blind)
#41557F
Tritanopia (blue-blind)
#95234C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8e1182;
/* rgb */ color: rgb(142, 17, 130);
/* oklch */ color: oklch(45.2% 0.192 333.0);
Tailwind
colors: {
  custom: {
    50: '#b364a7',
    500: '#8e1182',
    950: '#000000',
  },
}
SCSS
$custom: #8e1182;
$custom-light: #b364a7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1182",
  "rgb": {
    "r": 142,
    "g": 17,
    "b": 130
  },
  "hsl": {
    "h": 305.76,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.45236,
    "c": 0.19199,
    "h": 333
  },
  "luminance": 0.07763
}

Semantic roles & 50–950 ramp

primary
#8E1182
secondary
#38C246
accent
#F54533
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#12060F
muted
#817A7F

Preview Lab

Preview with #8E1182

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

Preview Lab → · Contrast checker → · Palette generator →

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