#8E52C8#8E52C8

#8E52C8 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.179 H 304.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8E52C8
RGBrgb(142, 82, 200)
HSLhsl(271, 52%, 55%)
HSVhsv(271, 59%, 78%)
CMYKcmyk(29%, 59%, 0%, 21.6%)
CIE-LABlab(46.92, 47.43, -52.16)
CIE-LCHlch(46.92, 70.50, 312.28°)
OKLaboklab(56.26% 0.1022 -0.1474)
OKLCHoklch(56.26% 0.179 304.7)
XYZxyz(24.5957, 15.9556, 56.4164)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52C8 #8CC852
analogous
#5352C8 #8E52C8 #C852C7
triadic
#8E52C8 #C88E52 #52C88E
tetradic
#8E52C8 #C85352 #8CC852 #52C7C8
square
#8E52C8 #C85352 #8CC852 #52C7C8
split-complementary
#8E52C8 #C7C852 #52C853
monochromatic
#502779 #6F35A8 #8E52C8 #AC80D7 #CBAFE6

Accessibility & contrast

On white

5.01
#8E52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8E52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52C8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52C8#FFFFFF#000000##FFFFFF
##8E52C81.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C6ECC
Deuteranopia (green-blind)
#396FC5
Tritanopia (blue-blind)
#846985
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8e52c8;
/* rgb */ color: rgb(142, 82, 200);
/* oklch */ color: oklch(56.3% 0.179 304.7);
Tailwind
colors: {
  custom: {
    50: '#b385d9',
    500: '#8e52c8',
    950: '#000000',
  },
}
SCSS
$custom: #8e52c8;
$custom-light: #b385d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52c8",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 270.508,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.56262,
    "c": 0.17934,
    "h": 304.7
  },
  "luminance": 0.15956
}

Semantic roles & 50–950 ramp

primary
#8E52C8
secondary
#BAD4A2
accent
#DB4D93
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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