#9852CB#9852CB

#9852CB is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.6% C 0.185 H 308.3°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#9852CB
RGBrgb(152, 82, 203)
HSLhsl(275, 54%, 56%)
HSVhsv(275, 60%, 80%)
CMYKcmyk(25.1%, 59.6%, 0%, 20.4%)
CIE-LABlab(48.29, 50.54, -51.62)
CIE-LCHlch(48.29, 72.24, 314.39°)
OKLaboklab(57.58% 0.1151 -0.1455)
OKLCHoklch(57.58% 0.185 308.3)
XYZxyz(26.7435, 17.0222, 58.3651)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852CB #85CB52
analogous
#5B52CB #9852CB #CB52C1
triadic
#9852CB #CB9852 #52CB98
tetradic
#9852CB #CB5B52 #85CB52 #52C1CB
square
#9852CB #CB5B52 #85CB52 #52C1CB
split-complementary
#9852CB #C1CB52 #52CB5B
monochromatic
#58267D #7934AC #9852CB #B481D9 #D0B0E7

Accessibility & contrast

On white

4.77
#9852CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#9852CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852CB
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852CB#FFFFFF#000000##FFFFFF
##9852CB1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2070CF
Deuteranopia (green-blind)
#4073C8
Tritanopia (blue-blind)
#906987
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9852cb;
/* rgb */ color: rgb(152, 82, 203);
/* oklch */ color: oklch(57.6% 0.185 308.3);
Tailwind
colors: {
  custom: {
    50: '#ba86db',
    500: '#9852cb',
    950: '#000000',
  },
}
SCSS
$custom: #9852cb;
$custom-light: #ba86db;
$custom-dark: #000000;
JSON
{
  "hex": "#9852cb",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 274.711,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57583,
    "c": 0.18549,
    "h": 308.3
  },
  "luminance": 0.17022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9852CB

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

Preview Lab → · Contrast checker → · Palette generator →

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