#8E52BB#8E52BB

#8E52BB is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.4% C 0.164 H 308.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8E52BB
RGBrgb(142, 82, 187)
HSLhsl(274, 44%, 53%)
HSVhsv(274, 56%, 73%)
CMYKcmyk(24.1%, 56.1%, 0%, 26.7%)
CIE-LABlab(46.14, 44.36, -45.87)
CIE-LCHlch(46.14, 63.81, 314.04°)
OKLaboklab(55.45% 0.102 -0.1289)
OKLCHoklch(55.45% 0.164 308.3)
XYZxyz(23.1405, 15.3736, 48.7524)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52BB #7FBB52
analogous
#5A52BB #8E52BB #BB52B3
triadic
#8E52BB #BB8E52 #52BB8E
tetradic
#8E52BB #BB5A52 #7FBB52 #52B3BB
square
#8E52BB #BB5A52 #7FBB52 #52B3BB
split-complementary
#8E52BB #B3BB52 #52BB5A
monochromatic
#4E2969 #6E3B95 #8E52BB #AB7ECC #C7AADE

Accessibility & contrast

On white

5.15
#8E52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8E52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52BB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52BB#FFFFFF#000000##FFFFFF
##8E52BB1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6BBE
Deuteranopia (green-blind)
#456EB8
Tritanopia (blue-blind)
#88657F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8e52bb;
/* rgb */ color: rgb(142, 82, 187);
/* oklch */ color: oklch(55.4% 0.164 308.3);
Tailwind
colors: {
  custom: {
    50: '#b285d0',
    500: '#8e52bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e52bb;
$custom-light: #b285d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52bb",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 274.286,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55445,
    "c": 0.16439,
    "h": 308.3
  },
  "luminance": 0.15373
}

Semantic roles & 50–950 ramp

primary
#8E52BB
secondary
#B1CB9E
accent
#D3548B
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B14
muted
#807C82

Preview Lab

Preview with #8E52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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