#9873BA#9873BA

#9873BA is a mid, moderate violet. Relative luminance 0.225; OKLCH L 61.9% C 0.111 H 307.4°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#9873BA
RGBrgb(152, 115, 186)
HSLhsl(271, 34%, 59%)
HSVhsv(271, 38%, 73%)
CMYKcmyk(18.3%, 38.2%, 0%, 27.1%)
CIE-LABlab(54.53, 28.43, -31.98)
CIE-LCHlch(54.53, 42.79, 311.64°)
OKLaboklab(61.94% 0.0676 -0.0885)
OKLCHoklch(61.94% 0.111 307.4)
XYZxyz(27.9408, 22.4823, 49.3124)
Luminance0.2248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873BA #95BA73
analogous
#7573BA #9873BA #BA73B8
triadic
#9873BA #BA9873 #73BA98
tetradic
#9873BA #BA7573 #95BA73 #73B8BA
square
#9873BA #BA7573 #95BA73 #73B8BA
split-complementary
#9873BA #B8BA73 #73BA75
monochromatic
#5B3B78 #7A4FA1 #9873BA #B69CCE #D4C5E2

Accessibility & contrast

On white

3.82
#9873BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#9873BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873BA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873BA#FFFFFF#000000##000000
##9873BA1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6481BD
Deuteranopia (green-blind)
#6C83B8
Tritanopia (blue-blind)
#937E8E
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #9873ba;
/* rgb */ color: rgb(152, 115, 186);
/* oklch */ color: oklch(61.9% 0.111 307.4);
Tailwind
colors: {
  custom: {
    50: '#b79ccf',
    500: '#9873ba',
    950: '#000000',
  },
}
SCSS
$custom: #9873ba;
$custom-light: #b79ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#9873ba",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 186
  },
  "hsl": {
    "h": 271.268,
    "s": 33.971,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61943,
    "c": 0.11139,
    "h": 307.4
  },
  "luminance": 0.22482
}

Semantic roles & 50–950 ramp

primary
#9873BA
secondary
#C4D2B6
accent
#CA5E92
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E13
muted
#807E82

Preview Lab

Preview with #9873BA

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

Preview Lab → · Contrast checker → · Palette generator →

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