#8E52BC#8E52BC

#8E52BC is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.5% C 0.166 H 308.0°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8E52BC
RGBrgb(142, 82, 188)
HSLhsl(274, 44%, 53%)
HSVhsv(274, 56%, 74%)
CMYKcmyk(24.5%, 56.4%, 0%, 26.3%)
CIE-LABlab(46.20, 44.59, -46.36)
CIE-LCHlch(46.20, 64.32, 313.89°)
OKLaboklab(55.51% 0.102 -0.1304)
OKLCHoklch(55.51% 0.166 308)
XYZxyz(23.2479, 15.4165, 49.3182)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52BC #80BC52
analogous
#5952BC #8E52BC #BC52B5
triadic
#8E52BC #BC8E52 #52BC8E
tetradic
#8E52BC #BC5952 #80BC52 #52B5BC
square
#8E52BC #BC5952 #80BC52 #52B5BC
split-complementary
#8E52BC #B5BC52 #52BC59
monochromatic
#4E296A #6E3A97 #8E52BC #AB7ECD #C8AADE

Accessibility & contrast

On white

5.14
#8E52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8E52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52BC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52BC#FFFFFF#000000##FFFFFF
##8E52BC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E6BBF
Deuteranopia (green-blind)
#446EB9
Tritanopia (blue-blind)
#87667F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8e52bc;
/* rgb */ color: rgb(142, 82, 188);
/* oklch */ color: oklch(55.5% 0.166 308.0);
Tailwind
colors: {
  custom: {
    50: '#b285d1',
    500: '#8e52bc',
    950: '#000000',
  },
}
SCSS
$custom: #8e52bc;
$custom-light: #b285d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52bc",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 273.962,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.55506,
    "c": 0.16554,
    "h": 308
  },
  "luminance": 0.15416
}

Semantic roles & 50–950 ramp

primary
#8E52BC
secondary
#B2CC9E
accent
#D4548B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8E52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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