#9852DD#9852DD

#9852DD is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.8% C 0.205 H 303.9°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#9852DD
RGBrgb(152, 82, 221)
HSLhsl(270, 67%, 59%)
HSVhsv(270, 63%, 87%)
CMYKcmyk(31.2%, 62.9%, 0%, 13.3%)
CIE-LABlab(49.41, 54.72, -60.10)
CIE-LCHlch(49.41, 81.28, 312.31°)
OKLaboklab(58.76% 0.1144 -0.1704)
OKLCHoklch(58.76% 0.205 303.9)
XYZxyz(29.0144, 17.9305, 70.3250)
Luminance0.1793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852DD #97DD52
analogous
#5352DD #9852DD #DD52DD
triadic
#9852DD #DD9852 #52DD98
tetradic
#9852DD #DD5352 #97DD52 #52DDDD
square
#9852DD #DD5352 #97DD52 #52DDDD
split-complementary
#9852DD #DDDD52 #52DD53
monochromatic
#5B1E97 #7928CA #9852DD #B685E7 #D5B8F1

Accessibility & contrast

On white

4.58
#9852DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#9852DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9852DD
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852DD#FFFFFF#000000##000000
##9852DD1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E1
Deuteranopia (green-blind)
#2A75DA
Tritanopia (blue-blind)
#8B7090
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9852dd;
/* rgb */ color: rgb(152, 82, 221);
/* oklch */ color: oklch(58.8% 0.205 303.9);
Tailwind
colors: {
  custom: {
    50: '#bb86e8',
    500: '#9852dd',
    950: '#000000',
  },
}
SCSS
$custom: #9852dd;
$custom-light: #bb86e8;
$custom-dark: #000000;
JSON
{
  "hex": "#9852dd",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 270.216,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.58758,
    "c": 0.20524,
    "h": 303.9
  },
  "luminance": 0.1793
}

Semantic roles & 50–950 ramp

primary
#9852DD
secondary
#C5E0AA
accent
#EA3E93
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9852DD

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

Preview Lab → · Contrast checker → · Palette generator →

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