#9872BC#9872BC

#9872BC is a mid, moderate violet. Relative luminance 0.223; OKLCH L 61.9% C 0.116 H 306.9°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#9872BC
RGBrgb(152, 114, 188)
HSLhsl(271, 36%, 59%)
HSVhsv(271, 39%, 74%)
CMYKcmyk(19.1%, 39.4%, 0%, 26.3%)
CIE-LABlab(54.39, 29.46, -33.36)
CIE-LCHlch(54.39, 44.51, 311.46°)
OKLaboklab(61.86% 0.0695 -0.0925)
OKLCHoklch(61.86% 0.116 306.9)
XYZxyz(28.0415, 22.3411, 50.4022)
Luminance0.2234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872BC #96BC72
analogous
#7372BC #9872BC #BC72BB
triadic
#9872BC #BC9872 #72BC98
tetradic
#9872BC #BC7372 #96BC72 #72BBBC
square
#9872BC #BC7372 #96BC72 #72BBBC
split-complementary
#9872BC #BBBC72 #72BC73
monochromatic
#5B3A7A #7A4EA3 #9872BC #B69BD0 #D5C5E3

Accessibility & contrast

On white

3.84
#9872BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#9872BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872BC
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872BC#FFFFFF#000000##000000
##9872BC1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6281BF
Deuteranopia (green-blind)
#6A82BA
Tritanopia (blue-blind)
#937D8E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9872bc;
/* rgb */ color: rgb(152, 114, 188);
/* oklch */ color: oklch(61.9% 0.116 306.9);
Tailwind
colors: {
  custom: {
    50: '#b79bd0',
    500: '#9872bc',
    950: '#000000',
  },
}
SCSS
$custom: #9872bc;
$custom-light: #b79bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#9872bc",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 188
  },
  "hsl": {
    "h": 270.811,
    "s": 35.577,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61861,
    "c": 0.1157,
    "h": 306.9
  },
  "luminance": 0.22341
}

Semantic roles & 50–950 ramp

primary
#9872BC
secondary
#C5D3B6
accent
#CC5C92
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9872BC

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

Preview Lab → · Contrast checker → · Palette generator →

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