#9873BB#9873BB

#9873BB is a mid, moderate violet. Relative luminance 0.225; OKLCH L 62.0% C 0.113 H 307.0°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#9873BB
RGBrgb(152, 115, 187)
HSLhsl(271, 35%, 59%)
HSVhsv(271, 39%, 73%)
CMYKcmyk(18.7%, 38.5%, 0%, 26.7%)
CIE-LABlab(54.58, 28.66, -32.48)
CIE-LCHlch(54.58, 43.32, 311.42°)
OKLaboklab(61.99% 0.0678 -0.09)
OKLCHoklch(61.99% 0.113 307)
XYZxyz(28.0475, 22.5250, 49.8742)
Luminance0.2253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873BB #96BB73
analogous
#7473BB #9873BB #BB73BA
triadic
#9873BB #BB9873 #73BB98
tetradic
#9873BB #BB7473 #96BB73 #73BABB
square
#9873BB #BB7473 #96BB73 #73BABB
split-complementary
#9873BB #BABB73 #73BB74
monochromatic
#5B3B79 #7A4FA2 #9873BB #B69CCF #D5C5E3

Accessibility & contrast

On white

3.81
#9873BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#9873BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873BB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873BB#FFFFFF#000000##000000
##9873BB1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6481BE
Deuteranopia (green-blind)
#6C83B9
Tritanopia (blue-blind)
#937E8E
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9873bb;
/* rgb */ color: rgb(152, 115, 187);
/* oklch */ color: oklch(62.0% 0.113 307.0);
Tailwind
colors: {
  custom: {
    50: '#b79ccf',
    500: '#9873bb',
    950: '#000000',
  },
}
SCSS
$custom: #9873bb;
$custom-light: #b79ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#9873bb",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 187
  },
  "hsl": {
    "h": 270.833,
    "s": 34.615,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61992,
    "c": 0.11267,
    "h": 307
  },
  "luminance": 0.22525
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9873BB

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

Preview Lab → · Contrast checker → · Palette generator →

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