#9852CA#9852CA

#9852CA is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.5% C 0.184 H 308.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#9852CA
RGBrgb(152, 82, 202)
HSLhsl(275, 53%, 56%)
HSVhsv(275, 59%, 79%)
CMYKcmyk(24.8%, 59.4%, 0%, 20.8%)
CIE-LABlab(48.23, 50.31, -51.14)
CIE-LCHlch(48.23, 71.74, 314.53°)
OKLaboklab(57.52% 0.1151 -0.1441)
OKLCHoklch(57.52% 0.184 308.6)
XYZxyz(26.6247, 16.9747, 57.7395)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852CA #84CA52
analogous
#5C52CA #9852CA #CA52C0
triadic
#9852CA #CA9852 #52CA98
tetradic
#9852CA #CA5C52 #84CA52 #52C0CA
square
#9852CA #CA5C52 #84CA52 #52C0CA
split-complementary
#9852CA #C0CA52 #52CA5C
monochromatic
#58267C #7934AB #9852CA #B481D8 #D0B0E7

Accessibility & contrast

On white

4.78
#9852CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#9852CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852CA
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852CA#FFFFFF#000000##FFFFFF
##9852CA1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2270CE
Deuteranopia (green-blind)
#4173C7
Tritanopia (blue-blind)
#916986
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #9852ca;
/* rgb */ color: rgb(152, 82, 202);
/* oklch */ color: oklch(57.5% 0.184 308.6);
Tailwind
colors: {
  custom: {
    50: '#ba86db',
    500: '#9852ca',
    950: '#000000',
  },
}
SCSS
$custom: #9852ca;
$custom-light: #ba86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9852ca",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 275,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5752,
    "c": 0.1844,
    "h": 308.6
  },
  "luminance": 0.16974
}

Semantic roles & 50–950 ramp

primary
#9852CA
secondary
#B8D5A3
accent
#DD4B88
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9852CA

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

Preview Lab → · Contrast checker → · Palette generator →

#9852CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva