#9852CC#9852CC

#9852CC is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.6% C 0.187 H 308.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#9852CC
RGBrgb(152, 82, 204)
HSLhsl(274, 54%, 56%)
HSVhsv(274, 60%, 80%)
CMYKcmyk(25.5%, 59.8%, 0%, 20%)
CIE-LABlab(48.35, 50.76, -52.10)
CIE-LCHlch(48.35, 72.74, 314.25°)
OKLaboklab(57.65% 0.1151 -0.1469)
OKLCHoklch(57.65% 0.187 308.1)
XYZxyz(26.8631, 17.0700, 58.9947)
Luminance0.1707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852CC #86CC52
analogous
#5B52CC #9852CC #CC52C3
triadic
#9852CC #CC9852 #52CC98
tetradic
#9852CC #CC5B52 #86CC52 #52C3CC
square
#9852CC #CC5B52 #86CC52 #52C3CC
split-complementary
#9852CC #C3CC52 #52CC5B
monochromatic
#58257E #7933AE #9852CC #B481DA #D0B1E8

Accessibility & contrast

On white

4.76
#9852CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#9852CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9852CC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852CC#FFFFFF#000000##FFFFFF
##9852CC1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E70D0
Deuteranopia (green-blind)
#3F74C9
Tritanopia (blue-blind)
#906A87
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #9852cc;
/* rgb */ color: rgb(152, 82, 204);
/* oklch */ color: oklch(57.6% 0.187 308.1);
Tailwind
colors: {
  custom: {
    50: '#ba86dc',
    500: '#9852cc',
    950: '#000000',
  },
}
SCSS
$custom: #9852cc;
$custom-light: #ba86dc;
$custom-dark: #000000;
JSON
{
  "hex": "#9852cc",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 274.426,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57646,
    "c": 0.18659,
    "h": 308.1
  },
  "luminance": 0.1707
}

Semantic roles & 50–950 ramp

primary
#9852CC
secondary
#B9D6A4
accent
#DE4A89
background
#FBF8FD
surface
#F7F0FB
border
#D0CBD4
text
#120B15
muted
#817C83

Preview Lab

Preview with #9852CC

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

Preview Lab → · Contrast checker → · Palette generator →

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