#8C52CC#8C52CC

#8C52CC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.183 H 302.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#8C52CC
RGBrgb(140, 82, 204)
HSLhsl(269, 54%, 56%)
HSVhsv(269, 60%, 80%)
CMYKcmyk(31.4%, 59.8%, 0%, 20%)
CIE-LABlab(46.93, 47.93, -54.45)
CIE-LCHlch(46.93, 72.54, 311.36°)
OKLaboklab(56.3% 0.0995 -0.1542)
OKLCHoklch(56.3% 0.183 302.8)
XYZxyz(24.7291, 15.9697, 58.8947)
Luminance0.1597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C52CC #92CC52
analogous
#5255CC #8C52CC #C952CC
triadic
#8C52CC #CC8C52 #52CC8C
tetradic
#8C52CC #CC5255 #92CC52 #52CCC9
square
#8C52CC #CC5255 #92CC52 #52CCC9
split-complementary
#8C52CC #CCC952 #55CC52
monochromatic
#50257E #6D33AE #8C52CC #AB81DA #CBB1E8

Accessibility & contrast

On white

5.01
#8C52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#8C52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C52CC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C52CC#FFFFFF#000000##FFFFFF
##8C52CC1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#106ED0
Deuteranopia (green-blind)
#316FC9
Tritanopia (blue-blind)
#806B87
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8c52cc;
/* rgb */ color: rgb(140, 82, 204);
/* oklch */ color: oklch(56.3% 0.183 302.8);
Tailwind
colors: {
  custom: {
    50: '#b285dc',
    500: '#8c52cc',
    950: '#000000',
  },
}
SCSS
$custom: #8c52cc;
$custom-light: #b285dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c52cc",
  "rgb": {
    "r": 140,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 268.525,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56303,
    "c": 0.18349,
    "h": 302.8
  },
  "luminance": 0.1597
}

Semantic roles & 50–950 ramp

primary
#8C52CC
secondary
#BED6A4
accent
#DE4A98
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8C52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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