#8E3ED9#8E3ED9

#8E3ED9 is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.9% C 0.224 H 303.2°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8E3ED9
RGBrgb(142, 62, 217)
HSLhsl(271, 67%, 55%)
HSVhsv(271, 71%, 85%)
CMYKcmyk(34.6%, 71.4%, 0%, 14.9%)
CIE-LABlab(44.53, 61.17, -65.79)
CIE-LCHlch(44.53, 89.83, 312.92°)
OKLaboklab(54.91% 0.1227 -0.1873)
OKLCHoklch(54.91% 0.224 303.2)
XYZxyz(25.3994, 14.2058, 67.0361)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3ED9 #89D93E
analogous
#413ED9 #8E3ED9 #D93ED6
triadic
#8E3ED9 #D98E3E #3ED98E
tetradic
#8E3ED9 #D9413E #89D93E #3ED6D9
square
#8E3ED9 #D9413E #89D93E #3ED6D9
split-complementary
#8E3ED9 #D6D93E #3ED941
monochromatic
#501A83 #6F24B6 #8E3ED9 #AC71E3 #CAA4ED

Accessibility & contrast

On white

5.47
#8E3ED9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8E3ED9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3ED9
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3ED9#FFFFFF#000000##FFFFFF
##8E3ED91.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#0069D6
Tritanopia (blue-blind)
#7F6388
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e3ed9;
/* rgb */ color: rgb(142, 62, 217);
/* oklch */ color: oklch(54.9% 0.224 303.2);
Tailwind
colors: {
  custom: {
    50: '#b57ae6',
    500: '#8e3ed9',
    950: '#000000',
  },
}
SCSS
$custom: #8e3ed9;
$custom-light: #b57ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3ed9",
  "rgb": {
    "r": 142,
    "g": 62,
    "b": 217
  },
  "hsl": {
    "h": 270.968,
    "s": 67.1,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54906,
    "c": 0.22392,
    "h": 303.2
  },
  "luminance": 0.14206
}

Semantic roles & 50–950 ramp

primary
#8E3ED9
secondary
#B8DA99
accent
#EA3E91
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E3ED9

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

Preview Lab → · Contrast checker → · Palette generator →

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