#9852DF#9852DF

#9852DF is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.9% C 0.207 H 303.4°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#9852DF
RGBrgb(152, 82, 223)
HSLhsl(270, 69%, 60%)
HSVhsv(270, 63%, 87%)
CMYKcmyk(31.8%, 63.2%, 0%, 12.5%)
CIE-LABlab(49.54, 55.19, -61.03)
CIE-LCHlch(49.54, 82.28, 312.12°)
OKLaboklab(58.89% 0.1143 -0.1731)
OKLCHoklch(58.89% 0.207 303.4)
XYZxyz(29.2824, 18.0377, 71.7367)
Luminance0.1804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852DF #99DF52
analogous
#5253DF #9852DF #DE52DF
triadic
#9852DF #DF9852 #52DF98
tetradic
#9852DF #DF5253 #99DF52 #52DFDE
square
#9852DF #DF5253 #99DF52 #52DFDE
split-complementary
#9852DF #DFDE52 #53DF52
monochromatic
#5B1D9A #7926CE #9852DF #B786E9 #D5B9F2

Accessibility & contrast

On white

4.56
#9852DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#9852DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9852DF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852DF#FFFFFF#000000##000000
##9852DF1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0074E3
Deuteranopia (green-blind)
#2676DC
Tritanopia (blue-blind)
#8A7091
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #9852df;
/* rgb */ color: rgb(152, 82, 223);
/* oklch */ color: oklch(58.9% 0.207 303.4);
Tailwind
colors: {
  custom: {
    50: '#bb86ea',
    500: '#9852df',
    950: '#000000',
  },
}
SCSS
$custom: #9852df;
$custom-light: #bb86ea;
$custom-dark: #000000;
JSON
{
  "hex": "#9852df",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 269.787,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58894,
    "c": 0.20743,
    "h": 303.4
  },
  "luminance": 0.18038
}

Semantic roles & 50–950 ramp

primary
#9852DF
secondary
#C7E2AB
accent
#EC3C95
background
#FBF8FE
surface
#F7F0FD
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9852DF

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

Preview Lab → · Contrast checker → · Palette generator →

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