#8D52E1#8D52E1

#8D52E1 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.9% C 0.208 H 298.7°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#8D52E1
RGBrgb(141, 82, 225)
HSLhsl(265, 70%, 60%)
HSVhsv(265, 64%, 88%)
CMYKcmyk(37.3%, 63.6%, 0%, 11.8%)
CIE-LABlab(48.43, 53.35, -64.02)
CIE-LCHlch(48.43, 83.34, 309.81°)
OKLaboklab(57.85% 0.0997 -0.1823)
OKLCHoklch(57.85% 0.208 298.7)
XYZxyz(27.5890, 17.1332, 73.0731)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D52E1 #A6E152
analogous
#525FE1 #8D52E1 #D452E1
triadic
#8D52E1 #E18D52 #52E18D
tetradic
#8D52E1 #E1525F #A6E152 #52E1D4
square
#8D52E1 #E1525F #A6E152 #52E1D4
split-complementary
#8D52E1 #E1D452 #5FE152
monochromatic
#511B9D #6C24D1 #8D52E1 #AF86EA #D2BAF3

Accessibility & contrast

On white

4.74
#8D52E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#8D52E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D52E1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D52E1#FFFFFF#000000##FFFFFF
##8D52E11.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#0072DE
Tritanopia (blue-blind)
#7A7292
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8d52e1;
/* rgb */ color: rgb(141, 82, 225);
/* oklch */ color: oklch(57.9% 0.208 298.7);
Tailwind
colors: {
  custom: {
    50: '#b486eb',
    500: '#8d52e1',
    950: '#000000',
  },
}
SCSS
$custom: #8d52e1;
$custom-light: #b486eb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d52e1",
  "rgb": {
    "r": 141,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 264.755,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.57851,
    "c": 0.20773,
    "h": 298.7
  },
  "luminance": 0.17134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8D52E1

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

Preview Lab → · Contrast checker → · Palette generator →

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