#9871BF#9871BF

#9871BF is a mid, vivid violet. Relative luminance 0.222; OKLCH L 61.8% C 0.121 H 306.2°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#9871BF
RGBrgb(152, 113, 191)
HSLhsl(270, 38%, 60%)
HSVhsv(270, 41%, 75%)
CMYKcmyk(20.4%, 40.8%, 0%, 25.1%)
CIE-LABlab(54.29, 30.74, -35.23)
CIE-LCHlch(54.29, 46.75, 311.10°)
OKLaboklab(61.83% 0.0716 -0.0979)
OKLCHoklch(61.83% 0.121 306.2)
XYZxyz(28.2561, 22.2474, 52.0857)
Luminance0.2225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871BF #98BF71
analogous
#7171BF #9871BF #BF71BF
triadic
#9871BF #BF9871 #71BF98
tetradic
#9871BF #BF7171 #98BF71 #71BFBF
square
#9871BF #BF7171 #98BF71 #71BFBF
split-complementary
#9871BF #BFBF71 #71BF71
monochromatic
#5B387D #794BA7 #9871BF #B79BD2 #D5C5E5

Accessibility & contrast

On white

3.85
#9871BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#9871BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871BF
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871BF#FFFFFF#000000##000000
##9871BF1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F80C2
Deuteranopia (green-blind)
#6882BD
Tritanopia (blue-blind)
#927D8F
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9871bf;
/* rgb */ color: rgb(152, 113, 191);
/* oklch */ color: oklch(61.8% 0.121 306.2);
Tailwind
colors: {
  custom: {
    50: '#b89ad2',
    500: '#9871bf',
    950: '#000000',
  },
}
SCSS
$custom: #9871bf;
$custom-light: #b89ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#9871bf",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 270,
    "s": 37.864,
    "l": 59.608
  },
  "oklch": {
    "l": 0.61831,
    "c": 0.12126,
    "h": 306.2
  },
  "luminance": 0.22247
}

Semantic roles & 50–950 ramp

primary
#9871BF
secondary
#C6D5B7
accent
#CE5A94
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9871BF

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

Preview Lab → · Contrast checker → · Palette generator →

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