#9852D9#9852D9

#9852D9 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.5% C 0.201 H 304.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#9852D9
RGBrgb(152, 82, 217)
HSLhsl(271, 64%, 59%)
HSVhsv(271, 62%, 85%)
CMYKcmyk(30%, 62.2%, 0%, 14.9%)
CIE-LABlab(49.15, 53.77, -58.24)
CIE-LCHlch(49.15, 79.27, 312.72°)
OKLaboklab(58.49% 0.1147 -0.1649)
OKLCHoklch(58.49% 0.201 304.8)
XYZxyz(28.4878, 17.7199, 67.5517)
Luminance0.1772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9852D9 #93D952
analogous
#5452D9 #9852D9 #D952D6
triadic
#9852D9 #D99852 #52D998
tetradic
#9852D9 #D95452 #93D952 #52D6D9
square
#9852D9 #D95452 #93D952 #52D6D9
split-complementary
#9852D9 #D6D952 #52D954
monochromatic
#5A2091 #7A2BC3 #9852D9 #B684E4 #D4B6EF

Accessibility & contrast

On white

4.62
#9852D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#9852D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #9852D9
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9852D9#FFFFFF#000000##FFFFFF
##9852D91.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#3075D6
Tritanopia (blue-blind)
#8C6E8E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #9852d9;
/* rgb */ color: rgb(152, 82, 217);
/* oklch */ color: oklch(58.5% 0.201 304.8);
Tailwind
colors: {
  custom: {
    50: '#ba86e5',
    500: '#9852d9',
    950: '#000000',
  },
}
SCSS
$custom: #9852d9;
$custom-light: #ba86e5;
$custom-dark: #000000;
JSON
{
  "hex": "#9852d9",
  "rgb": {
    "r": 152,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 271.111,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5849,
    "c": 0.20086,
    "h": 304.8
  },
  "luminance": 0.1772
}

Semantic roles & 50–950 ramp

primary
#9852D9
secondary
#C2DEA9
accent
#E74191
background
#FBF8FE
surface
#F7F0FC
border
#D0CBD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #9852D9

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

Preview Lab → · Contrast checker → · Palette generator →

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