#9870BB#9870BB

#9870BB is a mid, moderate violet. Relative luminance 0.219; OKLCH L 61.5% C 0.118 H 307.8°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#9870BB
RGBrgb(152, 112, 187)
HSLhsl(272, 36%, 59%)
HSVhsv(272, 40%, 73%)
CMYKcmyk(18.7%, 40.1%, 0%, 26.7%)
CIE-LABlab(53.87, 30.38, -33.59)
CIE-LCHlch(53.87, 45.29, 312.13°)
OKLaboklab(61.46% 0.0723 -0.0931)
OKLCHoklch(61.46% 0.118 307.8)
XYZxyz(27.7110, 21.8519, 49.7621)
Luminance0.2185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870BB #93BB70
analogous
#7270BB #9870BB #BB70B8
triadic
#9870BB #BB9870 #70BB98
tetradic
#9870BB #BB7270 #93BB70 #70B8BB
square
#9870BB #BB7270 #93BB70 #70B8BB
split-complementary
#9870BB #B8BB70 #70BB72
monochromatic
#5A3978 #7A4DA1 #9870BB #B699CF #D4C3E2

Accessibility & contrast

On white

3.91
#9870BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#9870BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870BB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870BB#FFFFFF#000000##000000
##9870BB1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#607FBE
Deuteranopia (green-blind)
#6981B9
Tritanopia (blue-blind)
#937B8D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9870bb;
/* rgb */ color: rgb(152, 112, 187);
/* oklch */ color: oklch(61.5% 0.118 307.8);
Tailwind
colors: {
  custom: {
    50: '#b799cf',
    500: '#9870bb',
    950: '#000000',
  },
}
SCSS
$custom: #9870bb;
$custom-light: #b799cf;
$custom-dark: #000000;
JSON
{
  "hex": "#9870bb",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 187
  },
  "hsl": {
    "h": 272,
    "s": 35.545,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61455,
    "c": 0.11789,
    "h": 307.8
  },
  "luminance": 0.21852
}

Semantic roles & 50–950 ramp

primary
#9870BB
secondary
#C2D2B5
accent
#CC5C90
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9870BB

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

Preview Lab → · Contrast checker → · Palette generator →

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