#8E52E1#8E52E1

#8E52E1 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 58.0% C 0.208 H 299.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#8E52E1
RGBrgb(142, 82, 225)
HSLhsl(265, 70%, 60%)
HSVhsv(265, 64%, 88%)
CMYKcmyk(36.9%, 63.6%, 0%, 11.8%)
CIE-LABlab(48.54, 53.56, -63.84)
CIE-LCHlch(48.54, 83.33, 310.00°)
OKLaboklab(57.96% 0.101 -0.1817)
OKLCHoklch(57.96% 0.208 299.1)
XYZxyz(27.7598, 17.2213, 73.0811)
Luminance0.1722 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52E1 #A5E152
analogous
#525DE1 #8E52E1 #D652E1
triadic
#8E52E1 #E18E52 #52E18E
tetradic
#8E52E1 #E1525D #A5E152 #52E1D6
square
#8E52E1 #E1525D #A5E152 #52E1D6
split-complementary
#8E52E1 #E1D652 #5DE152
monochromatic
#521B9D #6D24D1 #8E52E1 #B086EA #D2BAF3

Accessibility & contrast

On white

4.73
#8E52E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#8E52E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52E1
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52E1#FFFFFF#000000##FFFFFF
##8E52E11.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#0172DE
Tritanopia (blue-blind)
#7B7292
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8e52e1;
/* rgb */ color: rgb(142, 82, 225);
/* oklch */ color: oklch(58.0% 0.208 299.1);
Tailwind
colors: {
  custom: {
    50: '#b486eb',
    500: '#8e52e1',
    950: '#000000',
  },
}
SCSS
$custom: #8e52e1;
$custom-light: #b486eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52e1",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 265.175,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57956,
    "c": 0.20787,
    "h": 299.1
  },
  "luminance": 0.17222
}

Semantic roles & 50–950 ramp

primary
#8E52E1
secondary
#CCE3AC
accent
#D21382
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E52E1

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

Preview Lab → · Contrast checker → · Palette generator →

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