#9872BF#9872BF

#9872BF is a light, moderate violet. Relative luminance 0.225; OKLCH L 62.0% C 0.120 H 305.9°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#9872BF
RGBrgb(152, 114, 191)
HSLhsl(270, 38%, 60%)
HSVhsv(270, 40%, 75%)
CMYKcmyk(20.4%, 40.3%, 0%, 25.1%)
CIE-LABlab(54.52, 30.16, -34.86)
CIE-LCHlch(54.52, 46.10, 310.87°)
OKLaboklab(62.01% 0.0701 -0.0968)
OKLCHoklch(62.01% 0.12 305.9)
XYZxyz(28.3683, 22.4718, 52.1231)
Luminance0.2247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9872BF #99BF72
analogous
#7273BF #9872BF #BE72BF
triadic
#9872BF #BF9872 #72BF98
tetradic
#9872BF #BF7273 #99BF72 #72BFBE
square
#9872BF #BF7273 #99BF72 #72BFBE
split-complementary
#9872BF #BFBE72 #73BF72
monochromatic
#5B397E #794CA8 #9872BF #B79CD2 #D5C6E5

Accessibility & contrast

On white

3.82
#9872BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#9872BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9872BF
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9872BF#FFFFFF#000000##000000
##9872BF1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6081C2
Deuteranopia (green-blind)
#6983BD
Tritanopia (blue-blind)
#927E8F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9872bf;
/* rgb */ color: rgb(152, 114, 191);
/* oklch */ color: oklch(62.0% 0.120 305.9);
Tailwind
colors: {
  custom: {
    50: '#b79bd2',
    500: '#9872bf',
    950: '#000000',
  },
}
SCSS
$custom: #9872bf;
$custom-light: #b79bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#9872bf",
  "rgb": {
    "r": 152,
    "g": 114,
    "b": 191
  },
  "hsl": {
    "h": 269.61,
    "s": 37.561,
    "l": 59.804
  },
  "oklch": {
    "l": 0.62009,
    "c": 0.11955,
    "h": 305.9
  },
  "luminance": 0.22472
}

Semantic roles & 50–950 ramp

primary
#9872BF
secondary
#C7D5B8
accent
#CE5A95
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9872BF

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

Preview Lab → · Contrast checker → · Palette generator →

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