#9851BB#9851BB

#9851BB is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.5% C 0.170 H 313.2°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#9851BB
RGBrgb(152, 81, 187)
HSLhsl(280, 44%, 53%)
HSVhsv(280, 57%, 73%)
CMYKcmyk(18.7%, 56.7%, 0%, 26.7%)
CIE-LABlab(47.17, 47.48, -44.16)
CIE-LCHlch(47.17, 64.84, 317.08°)
OKLaboklab(56.47% 0.116 -0.1236)
OKLCHoklch(56.47% 0.17 313.2)
XYZxyz(24.8594, 16.1488, 48.8116)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9851BB #74BB51
analogous
#6351BB #9851BB #BB51A9
triadic
#9851BB #BB9851 #51BB98
tetradic
#9851BB #BB6351 #74BB51 #51A9BB
square
#9851BB #BB6351 #74BB51 #51A9BB
split-complementary
#9851BB #A9BB51 #51BB63
monochromatic
#542969 #773A95 #9851BB #B27DCC #CCA9DD

Accessibility & contrast

On white

4.97
#9851BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#9851BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #9851BB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9851BB#FFFFFF#000000##FFFFFF
##9851BB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336CBE
Deuteranopia (green-blind)
#4C72B8
Tritanopia (blue-blind)
#95637E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #9851bb;
/* rgb */ color: rgb(152, 81, 187);
/* oklch */ color: oklch(56.5% 0.170 313.2);
Tailwind
colors: {
  custom: {
    50: '#b985d0',
    500: '#9851bb',
    950: '#000000',
  },
}
SCSS
$custom: #9851bb;
$custom-light: #b985d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9851bb",
  "rgb": {
    "r": 152,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 280.189,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56467,
    "c": 0.16954,
    "h": 313.2
  },
  "luminance": 0.16148
}

Semantic roles & 50–950 ramp

primary
#9851BB
secondary
#ACCB9D
accent
#D4547E
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#120B14
muted
#817C82

Preview Lab

Preview with #9851BB

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

Preview Lab → · Contrast checker → · Palette generator →

#9851BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva