#8E3ED5#8E3ED5

#8E3ED5 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.6% C 0.220 H 304.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8E3ED5
RGBrgb(142, 62, 213)
HSLhsl(272, 64%, 54%)
HSVhsv(272, 71%, 84%)
CMYKcmyk(33.3%, 70.9%, 0%, 16.5%)
CIE-LABlab(44.23, 60.24, -63.97)
CIE-LCHlch(44.23, 87.87, 313.28°)
OKLaboklab(54.61% 0.1234 -0.182)
OKLCHoklch(54.61% 0.22 304.1)
XYZxyz(24.8854, 14.0002, 64.3292)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E3ED5 #85D53E
analogous
#433ED5 #8E3ED5 #D53ED1
triadic
#8E3ED5 #D58E3E #3ED58E
tetradic
#8E3ED5 #D5433E #85D53E #3ED1D5
square
#8E3ED5 #D5433E #85D53E #3ED1D5
split-complementary
#8E3ED5 #D1D53E #3ED543
monochromatic
#4F1B7D #6F26B0 #8E3ED5 #AB70E0 #C9A3EB

Accessibility & contrast

On white

5.53
#8E3ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8E3ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E3ED5
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E3ED5#FFFFFF#000000##FFFFFF
##8E3ED51.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#0068D2
Tritanopia (blue-blind)
#806286
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e3ed5;
/* rgb */ color: rgb(142, 62, 213);
/* oklch */ color: oklch(54.6% 0.220 304.1);
Tailwind
colors: {
  custom: {
    50: '#b57ae3',
    500: '#8e3ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8e3ed5;
$custom-light: #b57ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e3ed5",
  "rgb": {
    "r": 142,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 271.788,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54605,
    "c": 0.21985,
    "h": 304.1
  },
  "luminance": 0.14
}

Semantic roles & 50–950 ramp

primary
#8E3ED5
secondary
#B5D897
accent
#E7418F
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E3ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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