#8E52D4#8E52D4

#8E52D4 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 57.1% C 0.193 H 301.8°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8E52D4
RGBrgb(142, 82, 212)
HSLhsl(268, 60%, 58%)
HSVhsv(268, 61%, 83%)
CMYKcmyk(33%, 61.3%, 0%, 16.9%)
CIE-LABlab(47.67, 50.34, -57.83)
CIE-LCHlch(47.67, 76.68, 311.04°)
OKLaboklab(57.06% 0.1019 -0.164)
OKLCHoklch(57.06% 0.193 301.8)
XYZxyz(26.0535, 16.5388, 64.0943)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52D4 #98D452
analogous
#5257D4 #8E52D4 #CF52D4
triadic
#8E52D4 #D48E52 #52D48E
tetradic
#8E52D4 #D45257 #98D452 #52D4CF
square
#8E52D4 #D45257 #98D452 #52D4CF
split-complementary
#8E52D4 #D4CF52 #57D452
monochromatic
#522289 #6F2EBA #8E52D4 #AE83E0 #CEB4EC

Accessibility & contrast

On white

4.87
#8E52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#8E52D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52D4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52D4#FFFFFF#000000##FFFFFF
##8E52D41.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#2971D1
Tritanopia (blue-blind)
#806E8B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8e52d4;
/* rgb */ color: rgb(142, 82, 212);
/* oklch */ color: oklch(57.1% 0.193 301.8);
Tailwind
colors: {
  custom: {
    50: '#b386e2',
    500: '#8e52d4',
    950: '#000000',
  },
}
SCSS
$custom: #8e52d4;
$custom-light: #b386e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52d4",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 267.692,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57055,
    "c": 0.19309,
    "h": 301.8
  },
  "luminance": 0.16539
}

Semantic roles & 50–950 ramp

primary
#8E52D4
secondary
#C3DBA7
accent
#E3449A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8E52D4

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

Preview Lab → · Contrast checker → · Palette generator →

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