#8E52DB#8E52DB

#8E52DB is a mid, highly saturated violet. Relative luminance 0.169; OKLCH L 57.5% C 0.201 H 300.3°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#8E52DB
RGBrgb(142, 82, 219)
HSLhsl(266, 66%, 59%)
HSVhsv(266, 63%, 86%)
CMYKcmyk(35.2%, 62.6%, 0%, 14.1%)
CIE-LABlab(48.13, 52.07, -61.09)
CIE-LCHlch(48.13, 80.27, 310.44°)
OKLaboklab(57.54% 0.1015 -0.1736)
OKLCHoklch(57.54% 0.201 300.3)
XYZxyz(26.9557, 16.8996, 68.8459)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52DB #9FDB52
analogous
#525BDB #8E52DB #D252DB
triadic
#8E52DB #DB8E52 #52DB8E
tetradic
#8E52DB #DB525B #9FDB52 #52DBD2
square
#8E52DB #DB525B #9FDB52 #52DBD2
split-complementary
#8E52DB #DBD252 #5BDB52
monochromatic
#521F94 #6E29C6 #8E52DB #AF85E6 #D0B7F0

Accessibility & contrast

On white

4.79
#8E52DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#8E52DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52DB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52DB#FFFFFF#000000##FFFFFF
##8E52DB1.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#1A71D8
Tritanopia (blue-blind)
#7D708F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #8e52db;
/* rgb */ color: rgb(142, 82, 219);
/* oklch */ color: oklch(57.5% 0.201 300.3);
Tailwind
colors: {
  custom: {
    50: '#b486e7',
    500: '#8e52db',
    950: '#000000',
  },
}
SCSS
$custom: #8e52db;
$custom-light: #b486e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52db",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 266.277,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.57535,
    "c": 0.20107,
    "h": 300.3
  },
  "luminance": 0.169
}

Semantic roles & 50–950 ramp

primary
#8E52DB
secondary
#C8DFAA
accent
#E93F9E
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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