#8D52C2#8D52C2

#8D52C2 is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.8% C 0.172 H 305.9°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8D52C2
RGBrgb(141, 82, 194)
HSLhsl(272, 48%, 54%)
HSVhsv(272, 58%, 76%)
CMYKcmyk(27.3%, 57.7%, 0%, 23.9%)
CIE-LABlab(46.44, 45.75, -49.47)
CIE-LCHlch(46.44, 67.38, 312.77°)
OKLaboklab(55.77% 0.1009 -0.1395)
OKLCHoklch(55.77% 0.172 305.9)
XYZxyz(23.7373, 15.5925, 52.7876)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D52C2 #87C252
analogous
#5552C2 #8D52C2 #C252BF
triadic
#8D52C2 #C28D52 #52C28D
tetradic
#8D52C2 #C25552 #87C252 #52BFC2
square
#8D52C2 #C25552 #87C252 #52BFC2
split-complementary
#8D52C2 #BFC252 #52C255
monochromatic
#4F2872 #6E389F #8D52C2 #AB7FD2 #C9ACE2

Accessibility & contrast

On white

5.10
#8D52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#8D52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D52C2
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D52C2#FFFFFF#000000##FFFFFF
##8D52C21.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#256CC6
Deuteranopia (green-blind)
#3E6EBF
Tritanopia (blue-blind)
#846882
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8d52c2;
/* rgb */ color: rgb(141, 82, 194);
/* oklch */ color: oklch(55.8% 0.172 305.9);
Tailwind
colors: {
  custom: {
    50: '#b285d5',
    500: '#8d52c2',
    950: '#000000',
  },
}
SCSS
$custom: #8d52c2;
$custom-light: #b285d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8d52c2",
  "rgb": {
    "r": 141,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 271.607,
    "s": 47.863,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55767,
    "c": 0.17216,
    "h": 305.9
  },
  "luminance": 0.15592
}

Semantic roles & 50–950 ramp

primary
#8D52C2
secondary
#B7D0A0
accent
#D75090
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B14
muted
#807C83

Preview Lab

Preview with #8D52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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