#8E52E2#8E52E2

#8E52E2 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 58.0% C 0.209 H 298.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#8E52E2
RGBrgb(142, 82, 226)
HSLhsl(265, 71%, 60%)
HSVhsv(265, 64%, 89%)
CMYKcmyk(37.2%, 63.7%, 0%, 11.4%)
CIE-LABlab(48.61, 53.81, -64.29)
CIE-LCHlch(48.61, 83.84, 309.93°)
OKLaboklab(58.03% 0.1009 -0.183)
OKLCHoklch(58.03% 0.209 298.9)
XYZxyz(27.8967, 17.2760, 73.8016)
Luminance0.1728 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52E2 #A6E252
analogous
#525EE2 #8E52E2 #D652E2
triadic
#8E52E2 #E28E52 #52E28E
tetradic
#8E52E2 #E2525E #A6E252 #52E2D6
square
#8E52E2 #E2525E #A6E252 #52E2D6
split-complementary
#8E52E2 #E2D652 #5EE252
monochromatic
#521B9F #6D23D3 #8E52E2 #B086EB #D2BBF4

Accessibility & contrast

On white

4.71
#8E52E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#8E52E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52E2
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52E2#FFFFFF#000000##FFFFFF
##8E52E21.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#7B7293
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8e52e2;
/* rgb */ color: rgb(142, 82, 226);
/* oklch */ color: oklch(58.0% 0.209 298.9);
Tailwind
colors: {
  custom: {
    50: '#b586ec',
    500: '#8e52e2',
    950: '#000000',
  },
}
SCSS
$custom: #8e52e2;
$custom-light: #b586ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52e2",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 265,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58027,
    "c": 0.209,
    "h": 298.9
  },
  "luminance": 0.17276
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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