#8E52DC#8E52DC

#8E52DC is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.202 H 300.1°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#8E52DC
RGBrgb(142, 82, 220)
HSLhsl(266, 66%, 59%)
HSVhsv(266, 63%, 86%)
CMYKcmyk(35.5%, 62.7%, 0%, 13.7%)
CIE-LABlab(48.20, 52.31, -61.55)
CIE-LCHlch(48.20, 80.78, 310.36°)
OKLaboklab(57.61% 0.1014 -0.1749)
OKLCHoklch(57.61% 0.202 300.1)
XYZxyz(27.0877, 16.9525, 69.5413)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52DC #A0DC52
analogous
#525BDC #8E52DC #D352DC
triadic
#8E52DC #DC8E52 #52DC8E
tetradic
#8E52DC #DC525B #A0DC52 #52DCD3
square
#8E52DC #DC525B #A0DC52 #52DCD3
split-complementary
#8E52DC #DCD352 #5BDC52
monochromatic
#521E95 #6E29C8 #8E52DC #AF85E6 #D0B8F1

Accessibility & contrast

On white

4.78
#8E52DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#8E52DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52DC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52DC#FFFFFF#000000##FFFFFF
##8E52DC1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#1771D9
Tritanopia (blue-blind)
#7D7090
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8e52dc;
/* rgb */ color: rgb(142, 82, 220);
/* oklch */ color: oklch(57.6% 0.202 300.1);
Tailwind
colors: {
  custom: {
    50: '#b486e8',
    500: '#8e52dc',
    950: '#000000',
  },
}
SCSS
$custom: #8e52dc;
$custom-light: #b486e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52dc",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 266.087,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57605,
    "c": 0.20221,
    "h": 300.1
  },
  "luminance": 0.16953
}

Semantic roles & 50–950 ramp

primary
#8E52DC
secondary
#C8E0AA
accent
#E93F9F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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