#8E3EDA#8E3EDA

#8E3EDA is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 55.0% C 0.225 H 303.0°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#8E3EDA
RGBrgb(142, 62, 218)
HSLhsl(271, 68%, 55%)
HSVhsv(271, 72%, 85%)
CMYKcmyk(34.9%, 71.6%, 0%, 14.5%)
CIE-LABlab(44.60, 61.40, -66.24)
CIE-LCHlch(44.60, 90.32, 312.83°)
OKLaboklab(54.98% 0.1225 -0.1887)
OKLCHoklch(54.98% 0.225 303)
XYZxyz(25.5299, 14.2580, 67.7231)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3EDA #8ADA3E
analogous
#403EDA #8E3EDA #DA3ED8
triadic
#8E3EDA #DA8E3E #3EDA8E
tetradic
#8E3EDA #DA403E #8ADA3E #3ED8DA
square
#8E3EDA #DA403E #8ADA3E #3ED8DA
split-complementary
#8E3EDA #D8DA3E #3EDA40
monochromatic
#501984 #6F23B8 #8E3EDA #AC71E4 #CAA5EE

Accessibility & contrast

On white

5.45
#8E3EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8E3EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3EDA
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3EDA#FFFFFF#000000##FFFFFF
##8E3EDA1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DF
Deuteranopia (green-blind)
#0069D7
Tritanopia (blue-blind)
#7F6488
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e3eda;
/* rgb */ color: rgb(142, 62, 218);
/* oklch */ color: oklch(55.0% 0.225 303.0);
Tailwind
colors: {
  custom: {
    50: '#b57ae6',
    500: '#8e3eda',
    950: '#000000',
  },
}
SCSS
$custom: #8e3eda;
$custom-light: #b57ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3eda",
  "rgb": {
    "r": 142,
    "g": 62,
    "b": 218
  },
  "hsl": {
    "h": 270.769,
    "s": 67.826,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54981,
    "c": 0.22493,
    "h": 303
  },
  "luminance": 0.14258
}

Semantic roles & 50–950 ramp

primary
#8E3EDA
secondary
#B9DB99
accent
#EB3D92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E3EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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