#9871BB#9871BB

#9871BB is a mid, moderate violet. Relative luminance 0.221; OKLCH L 61.6% C 0.116 H 307.5°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#9871BB
RGBrgb(152, 113, 187)
HSLhsl(272, 35%, 59%)
HSVhsv(272, 40%, 73%)
CMYKcmyk(18.7%, 39.6%, 0%, 26.7%)
CIE-LABlab(54.11, 29.81, -33.22)
CIE-LCHlch(54.11, 44.63, 311.90°)
OKLaboklab(61.63% 0.0708 -0.0921)
OKLCHoklch(61.63% 0.116 307.5)
XYZxyz(27.8219, 22.0738, 49.7991)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871BB #94BB71
analogous
#7371BB #9871BB #BB71B9
triadic
#9871BB #BB9871 #71BB98
tetradic
#9871BB #BB7371 #94BB71 #71B9BB
square
#9871BB #BB7371 #94BB71 #71B9BB
split-complementary
#9871BB #B9BB71 #71BB73
monochromatic
#5A3A78 #7A4DA1 #9871BB #B69ACF #D4C4E3

Accessibility & contrast

On white

3.88
#9871BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#9871BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871BB
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871BB#FFFFFF#000000##000000
##9871BB1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6180BE
Deuteranopia (green-blind)
#6A82B9
Tritanopia (blue-blind)
#937C8D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9871bb;
/* rgb */ color: rgb(152, 113, 187);
/* oklch */ color: oklch(61.6% 0.116 307.5);
Tailwind
colors: {
  custom: {
    50: '#b79acf',
    500: '#9871bb',
    950: '#000000',
  },
}
SCSS
$custom: #9871bb;
$custom-light: #b79acf;
$custom-dark: #000000;
JSON
{
  "hex": "#9871bb",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 271.622,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61633,
    "c": 0.11615,
    "h": 307.5
  },
  "luminance": 0.22074
}

Semantic roles & 50–950 ramp

primary
#9871BB
secondary
#C3D2B5
accent
#CB5D91
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9871BB

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

Preview Lab → · Contrast checker → · Palette generator →

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