#8E52EF#8E52EF

#8E52EF is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 59.0% C 0.224 H 296.4°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#8E52EF
RGBrgb(142, 82, 239)
HSLhsl(263, 83%, 63%)
HSVhsv(263, 66%, 94%)
CMYKcmyk(40.6%, 65.7%, 0%, 6.3%)
CIE-LABlab(49.52, 57.08, -70.15)
CIE-LCHlch(49.52, 90.44, 309.14°)
OKLaboklab(58.97% 0.0995 -0.2002)
OKLCHoklch(58.97% 0.224 296.4)
XYZxyz(29.7485, 18.0168, 83.5549)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52EF #B3EF52
analogous
#5264EF #8E52EF #DD52EF
triadic
#8E52EF #EF8E52 #52EF8E
tetradic
#8E52EF #EF5264 #B3EF52 #52EFDD
square
#8E52EF #EF5264 #B3EF52 #52EFDD
split-complementary
#8E52EF #EFDD52 #64EF52
monochromatic
#5011B6 #691AEA #8E52EF #B38AF4 #D7C2F9

Accessibility & contrast

On white

4.56
#8E52EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#8E52EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E52EF
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52EF#FFFFFF#000000##000000
##8E52EF1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0077F4
Deuteranopia (green-blind)
#0074EC
Tritanopia (blue-blind)
#75779A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #8e52ef;
/* rgb */ color: rgb(142, 82, 239);
/* oklch */ color: oklch(59.0% 0.224 296.4);
Tailwind
colors: {
  custom: {
    50: '#b686f5',
    500: '#8e52ef',
    950: '#000000',
  },
}
SCSS
$custom: #8e52ef;
$custom-light: #b686f5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52ef",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 262.93,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5897,
    "c": 0.22361,
    "h": 296.4
  },
  "luminance": 0.18017
}

Semantic roles & 50–950 ramp

primary
#8E52EF
secondary
#D5EBB2
accent
#DF068C
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B17
muted
#817C85

Preview Lab

Preview with #8E52EF

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

Preview Lab → · Contrast checker → · Palette generator →

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