#8E52CD#8E52CD

#8E52CD is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.6% C 0.185 H 303.5°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8E52CD
RGBrgb(142, 82, 205)
HSLhsl(269, 55%, 56%)
HSVhsv(269, 60%, 80%)
CMYKcmyk(30.7%, 60%, 0%, 19.6%)
CIE-LABlab(47.23, 48.64, -54.54)
CIE-LCHlch(47.23, 73.08, 311.73°)
OKLaboklab(56.59% 0.1021 -0.1544)
OKLCHoklch(56.59% 0.185 303.5)
XYZxyz(25.1896, 16.1932, 59.5443)
Luminance0.1619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52CD #91CD52
analogous
#5254CD #8E52CD #CC52CD
triadic
#8E52CD #CD8E52 #52CD8E
tetradic
#8E52CD #CD5254 #91CD52 #52CDCC
square
#8E52CD #CD5254 #91CD52 #52CDCC
split-complementary
#8E52CD #CDCC52 #54CD52
monochromatic
#512580 #6F33AF #8E52CD #AD81DB #CCB1E8

Accessibility & contrast

On white

4.95
#8E52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8E52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52CD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52CD#FFFFFF#000000##FFFFFF
##8E52CD1.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6FD1
Deuteranopia (green-blind)
#3370CA
Tritanopia (blue-blind)
#826B88
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8e52cd;
/* rgb */ color: rgb(142, 82, 205);
/* oklch */ color: oklch(56.6% 0.185 303.5);
Tailwind
colors: {
  custom: {
    50: '#b385dd',
    500: '#8e52cd',
    950: '#000000',
  },
}
SCSS
$custom: #8e52cd;
$custom-light: #b385dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52cd",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 269.268,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56588,
    "c": 0.18509,
    "h": 303.5
  },
  "luminance": 0.16193
}

Semantic roles & 50–950 ramp

primary
#8E52CD
secondary
#BED7A4
accent
#DE4996
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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