#8E1EB2#8E1EB2

#8E1EB2 is a mid, highly saturated purple. Relative luminance 0.099; OKLCH L 49.2% C 0.219 H 315.8°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8E1EB2
RGBrgb(142, 30, 178)
HSLhsl(285, 71%, 41%)
HSVhsv(285, 83%, 70%)
CMYKcmyk(20.2%, 83.1%, 0%, 30.2%)
CIE-LABlab(37.65, 64.41, -54.21)
CIE-LCHlch(37.65, 84.19, 319.91°)
OKLaboklab(49.17% 0.1573 -0.1531)
OKLCHoklch(49.17% 0.219 315.8)
XYZxyz(19.6542, 9.8945, 42.9854)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E1EB2 #42B21E
analogous
#441EB2 #8E1EB2 #B21E8C
triadic
#8E1EB2 #B28E1E #1EB28E
tetradic
#8E1EB2 #B2441E #42B21E #1E8CB2
square
#8E1EB2 #B2441E #42B21E #1E8CB2
split-complementary
#8E1EB2 #8CB21E #1EB244
monochromatic
#3A0C49 #64157E #8E1EB2 #B331DC #C665E5

Accessibility & contrast

On white

7.05
#8E1EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8E1EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E1EB2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E1EB2#FFFFFF#000000##FFFFFF
##8E1EB21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#185BAF
Tritanopia (blue-blind)
#8B436A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8e1eb2;
/* rgb */ color: rgb(142, 30, 178);
/* oklch */ color: oklch(49.2% 0.219 315.8);
Tailwind
colors: {
  custom: {
    50: '#b46aca',
    500: '#8e1eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8e1eb2;
$custom-light: #b46aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e1eb2",
  "rgb": {
    "r": 142,
    "g": 30,
    "b": 178
  },
  "hsl": {
    "h": 285.405,
    "s": 71.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.49166,
    "c": 0.21948,
    "h": 315.8
  },
  "luminance": 0.09894
}

Semantic roles & 50–950 ramp

primary
#8E1EB2
secondary
#7BCA62
accent
#EE3A66
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#120713
muted
#817A82

Preview Lab

Preview with #8E1EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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