#9852CF#9852CF

#9852CF is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.8% C 0.190 H 307.3°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#9852CF
RGBrgb(152, 82, 207)
HSLhsl(274, 57%, 57%)
HSVhsv(274, 60%, 81%)
CMYKcmyk(26.6%, 60.4%, 0%, 18.8%)
CIE-LABlab(48.53, 51.45, -53.53)
CIE-LCHlch(48.53, 74.25, 313.86°)
OKLaboklab(57.84% 0.115 -0.1511)
OKLCHoklch(57.84% 0.19 307.3)
XYZxyz(27.2263, 17.2153, 60.9080)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852CF #89CF52
analogous
#5A52CF #9852CF #CF52C8
triadic
#9852CF #CF9852 #52CF98
tetradic
#9852CF #CF5A52 #89CF52 #52C8CF
square
#9852CF #CF5A52 #89CF52 #52C8CF
split-complementary
#9852CF #C8CF52 #52CF5A
monochromatic
#592482 #7A31B2 #9852CF #B582DC #D1B2EA

Accessibility & contrast

On white

4.73
#9852CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#9852CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852CF
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852CF#FFFFFF#000000##FFFFFF
##9852CF1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1771D3
Deuteranopia (green-blind)
#3C74CC
Tritanopia (blue-blind)
#8F6B89
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9852cf;
/* rgb */ color: rgb(152, 82, 207);
/* oklch */ color: oklch(57.8% 0.190 307.3);
Tailwind
colors: {
  custom: {
    50: '#ba86de',
    500: '#9852cf',
    950: '#000000',
  },
}
SCSS
$custom: #9852cf;
$custom-light: #ba86de;
$custom-dark: #000000;
JSON
{
  "hex": "#9852cf",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 273.6,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57837,
    "c": 0.18989,
    "h": 307.3
  },
  "luminance": 0.17215
}

Semantic roles & 50–950 ramp

primary
#9852CF
secondary
#BBD8A5
accent
#E0488B
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9852CF

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

Preview Lab → · Contrast checker → · Palette generator →

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