#8E52E5#8E52E5

#8E52E5 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.2% C 0.212 H 298.3°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#8E52E5
RGBrgb(142, 82, 229)
HSLhsl(264, 74%, 61%)
HSVhsv(264, 64%, 90%)
CMYKcmyk(38%, 64.2%, 0%, 10.2%)
CIE-LABlab(48.81, 54.56, -65.66)
CIE-LCHlch(48.81, 85.37, 309.73°)
OKLaboklab(58.24% 0.1006 -0.187)
OKLCHoklch(58.24% 0.212 298.3)
XYZxyz(28.3119, 17.4421, 75.9886)
Luminance0.1744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E52E5 #A9E552
analogous
#525FE5 #8E52E5 #D752E5
triadic
#8E52E5 #E58E52 #52E58E
tetradic
#8E52E5 #E5525F #A9E552 #52E5D7
square
#8E52E5 #E5525F #A9E552 #52E5D7
split-complementary
#8E52E5 #E5D752 #5FE552
monochromatic
#5219A4 #6C21D9 #8E52E5 #B187ED #D4BCF5

Accessibility & contrast

On white

4.68
#8E52E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#8E52E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E52E5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E52E5#FFFFFF#000000##FFFFFF
##8E52E51.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EA
Deuteranopia (green-blind)
#0072E2
Tritanopia (blue-blind)
#7A7394
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #8e52e5;
/* rgb */ color: rgb(142, 82, 229);
/* oklch */ color: oklch(58.2% 0.212 298.3);
Tailwind
colors: {
  custom: {
    50: '#b586ee',
    500: '#8e52e5',
    950: '#000000',
  },
}
SCSS
$custom: #8e52e5;
$custom-light: #b586ee;
$custom-dark: #000000;
JSON
{
  "hex": "#8e52e5",
  "rgb": {
    "r": 142,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 264.49,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58241,
    "c": 0.21239,
    "h": 298.3
  },
  "luminance": 0.17443
}

Semantic roles & 50–950 ramp

primary
#8E52E5
secondary
#CEE5AE
accent
#D61085
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8E52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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