#8C52CA#8C52CA

#8C52CA is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.2% C 0.181 H 303.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#8C52CA
RGBrgb(140, 82, 202)
HSLhsl(269, 53%, 56%)
HSVhsv(269, 59%, 79%)
CMYKcmyk(30.7%, 59.4%, 0%, 20.8%)
CIE-LABlab(46.81, 47.44, -53.50)
CIE-LCHlch(46.81, 71.50, 311.57°)
OKLaboklab(56.17% 0.0996 -0.1514)
OKLCHoklch(56.17% 0.181 303.3)
XYZxyz(24.4908, 15.8743, 57.6395)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C52CA #90CA52
analogous
#5254CA #8C52CA #C852CA
triadic
#8C52CA #CA8C52 #52CA8C
tetradic
#8C52CA #CA5254 #90CA52 #52CAC8
square
#8C52CA #CA5254 #90CA52 #52CAC8
split-complementary
#8C52CA #CAC852 #54CA52
monochromatic
#4F267C #6D34AB #8C52CA #AB81D8 #CAB0E7

Accessibility & contrast

On white

5.03
#8C52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8C52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C52CA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C52CA#FFFFFF#000000##FFFFFF
##8C52CA1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156ECE
Deuteranopia (green-blind)
#346FC7
Tritanopia (blue-blind)
#806A86
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8c52ca;
/* rgb */ color: rgb(140, 82, 202);
/* oklch */ color: oklch(56.2% 0.181 303.3);
Tailwind
colors: {
  custom: {
    50: '#b185db',
    500: '#8c52ca',
    950: '#000000',
  },
}
SCSS
$custom: #8c52ca;
$custom-light: #b185db;
$custom-dark: #000000;
JSON
{
  "hex": "#8c52ca",
  "rgb": {
    "r": 140,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 269,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56172,
    "c": 0.18118,
    "h": 303.3
  },
  "luminance": 0.15874
}

Semantic roles & 50–950 ramp

primary
#8C52CA
secondary
#BDD5A3
accent
#DD4B96
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8C52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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