#9870BC#9870BC

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

Color values

HEX#9870BC
RGBrgb(152, 112, 188)
HSLhsl(272, 36%, 59%)
HSVhsv(272, 40%, 74%)
CMYKcmyk(19.1%, 40.4%, 0%, 26.3%)
CIE-LABlab(53.92, 30.61, -34.09)
CIE-LCHlch(53.92, 45.82, 311.92°)
OKLaboklab(61.5% 0.0725 -0.0946)
OKLCHoklch(61.5% 0.119 307.4)
XYZxyz(27.8184, 21.8948, 50.3278)
Luminance0.2190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9870BC #94BC70
analogous
#7270BC #9870BC #BC70BA
triadic
#9870BC #BC9870 #70BC98
tetradic
#9870BC #BC7270 #94BC70 #70BABC
square
#9870BC #BC7270 #94BC70 #70BABC
split-complementary
#9870BC #BABC70 #70BC72
monochromatic
#5A3979 #7A4CA3 #9870BC #B69AD0 #D4C3E3

Accessibility & contrast

On white

3.90
#9870BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#9870BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9870BC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9870BC#FFFFFF#000000##000000
##9870BC1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F7FBF
Deuteranopia (green-blind)
#6981BA
Tritanopia (blue-blind)
#937C8D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #9870bc;
/* rgb */ color: rgb(152, 112, 188);
/* oklch */ color: oklch(61.5% 0.119 307.4);
Tailwind
colors: {
  custom: {
    50: '#b799d0',
    500: '#9870bc',
    950: '#000000',
  },
}
SCSS
$custom: #9870bc;
$custom-light: #b799d0;
$custom-dark: #000000;
JSON
{
  "hex": "#9870bc",
  "rgb": {
    "r": 152,
    "g": 112,
    "b": 188
  },
  "hsl": {
    "h": 271.579,
    "s": 36.19,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61504,
    "c": 0.11915,
    "h": 307.4
  },
  "luminance": 0.21895
}

Semantic roles & 50–950 ramp

primary
#9870BC
secondary
#C3D3B5
accent
#CC5C91
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9870BC

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

Preview Lab → · Contrast checker → · Palette generator →

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