#8E52DF#8E52DF

#8E52DF is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.8% C 0.206 H 299.5°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8E52DF
RGBrgb(142, 82, 223)
HSLhsl(266, 69%, 60%)
HSVhsv(266, 63%, 87%)
CMYKcmyk(36.3%, 63.2%, 0%, 12.5%)
CIE-LABlab(48.40, 53.06, -62.92)
CIE-LCHlch(48.40, 82.31, 310.14°)
OKLaboklab(57.82% 0.1012 -0.179)
OKLCHoklch(57.82% 0.206 299.5)
XYZxyz(27.4886, 17.1128, 71.6526)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52DF #A3DF52
analogous
#525DDF #8E52DF #D452DF
triadic
#8E52DF #DF8E52 #52DF8E
tetradic
#8E52DF #DF525D #A3DF52 #52DFD4
square
#8E52DF #DF525D #A3DF52 #52DFD4
split-complementary
#8E52DF #DFD452 #5DDF52
monochromatic
#521D9A #6D26CE #8E52DF #B086E9 #D1B9F2

Accessibility & contrast

On white

4.75
#8E52DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8E52DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52DF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52DF#FFFFFF#000000##FFFFFF
##8E52DF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E3
Deuteranopia (green-blind)
#0C72DC
Tritanopia (blue-blind)
#7C7191
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8e52df;
/* rgb */ color: rgb(142, 82, 223);
/* oklch */ color: oklch(57.8% 0.206 299.5);
Tailwind
colors: {
  custom: {
    50: '#b486ea',
    500: '#8e52df',
    950: '#000000',
  },
}
SCSS
$custom: #8e52df;
$custom-light: #b486ea;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52df",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 265.532,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.57815,
    "c": 0.20561,
    "h": 299.5
  },
  "luminance": 0.17113
}

Semantic roles & 50–950 ramp

primary
#8E52DF
secondary
#CAE2AB
accent
#EC3CA1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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