#9873BD#9873BD

#9873BD is a light, moderate violet. Relative luminance 0.226; OKLCH L 62.1% C 0.115 H 306.3°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#9873BD
RGBrgb(152, 115, 189)
HSLhsl(270, 36%, 60%)
HSVhsv(270, 39%, 74%)
CMYKcmyk(19.6%, 39.2%, 0%, 25.9%)
CIE-LABlab(54.67, 29.12, -33.49)
CIE-LCHlch(54.67, 44.38, 311.01°)
OKLaboklab(62.09% 0.0683 -0.0929)
OKLCHoklch(62.09% 0.115 306.3)
XYZxyz(28.2631, 22.6112, 51.0097)
Luminance0.2261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873BD #98BD73
analogous
#7373BD #9873BD #BD73BD
triadic
#9873BD #BD9873 #73BD98
tetradic
#9873BD #BD7373 #98BD73 #73BDBD
square
#9873BD #BD7373 #98BD73 #73BDBD
split-complementary
#9873BD #BDBD73 #73BD73
monochromatic
#5B3A7B #794EA5 #9873BD #B79DD1 #D5C6E4

Accessibility & contrast

On white

3.80
#9873BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#9873BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873BD
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873BD#FFFFFF#000000##000000
##9873BD1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6381C0
Deuteranopia (green-blind)
#6B83BB
Tritanopia (blue-blind)
#937E8F
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9873bd;
/* rgb */ color: rgb(152, 115, 189);
/* oklch */ color: oklch(62.1% 0.115 306.3);
Tailwind
colors: {
  custom: {
    50: '#b79cd1',
    500: '#9873bd',
    950: '#000000',
  },
}
SCSS
$custom: #9873bd;
$custom-light: #b79cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#9873bd",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 189
  },
  "hsl": {
    "h": 270,
    "s": 35.922,
    "l": 59.608
  },
  "oklch": {
    "l": 0.62089,
    "c": 0.11525,
    "h": 306.3
  },
  "luminance": 0.22611
}

Semantic roles & 50–950 ramp

primary
#9873BD
secondary
#C6D4B8
accent
#CC5C94
background
#FBF9FC
surface
#F6F2F9
border
#D0CCD2
text
#110E14
muted
#807E82

Preview Lab

Preview with #9873BD

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

Preview Lab → · Contrast checker → · Palette generator →

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