#9872BB#9872BB

#9872BB is a mid, moderate violet. Relative luminance 0.223; OKLCH L 61.8% C 0.114 H 307.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#9872BB
RGBrgb(152, 114, 187)
HSLhsl(271, 35%, 59%)
HSVhsv(271, 39%, 73%)
CMYKcmyk(18.7%, 39%, 0%, 26.7%)
CIE-LABlab(54.34, 29.23, -32.85)
CIE-LCHlch(54.34, 43.98, 311.66°)
OKLaboklab(61.81% 0.0693 -0.091)
OKLCHoklch(61.81% 0.114 307.3)
XYZxyz(27.9341, 22.2981, 49.8364)
Luminance0.2230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872BB #95BB72
analogous
#7472BB #9872BB #BB72BA
triadic
#9872BB #BB9872 #72BB98
tetradic
#9872BB #BB7472 #95BB72 #72BABB
square
#9872BB #BB7472 #95BB72 #72BABB
split-complementary
#9872BB #BABB72 #72BB74
monochromatic
#5B3A78 #7A4EA2 #9872BB #B69BCF #D4C5E3

Accessibility & contrast

On white

3.85
#9872BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#9872BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872BB
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872BB#FFFFFF#000000##000000
##9872BB1.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6280BE
Deuteranopia (green-blind)
#6B82B9
Tritanopia (blue-blind)
#937D8E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9872bb;
/* rgb */ color: rgb(152, 114, 187);
/* oklch */ color: oklch(61.8% 0.114 307.3);
Tailwind
colors: {
  custom: {
    50: '#b79bcf',
    500: '#9872bb',
    950: '#000000',
  },
}
SCSS
$custom: #9872bb;
$custom-light: #b79bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#9872bb",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 187
  },
  "hsl": {
    "h": 271.233,
    "s": 34.928,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61812,
    "c": 0.11441,
    "h": 307.3
  },
  "luminance": 0.22298
}

Semantic roles & 50–950 ramp

primary
#9872BB
secondary
#C4D3B6
accent
#CB5D92
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9872BB

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

Preview Lab → · Contrast checker → · Palette generator →

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