#9873DD#9873DD

#9873DD is a light, vivid violet. Relative luminance 0.242; OKLCH L 63.8% C 0.157 H 297.9°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#9873DD
RGBrgb(152, 115, 221)
HSLhsl(261, 61%, 66%)
HSVhsv(261, 48%, 87%)
CMYKcmyk(31.2%, 48%, 0%, 13.3%)
CIE-LABlab(56.24, 36.90, -49.17)
CIE-LCHlch(56.24, 61.47, 306.89°)
OKLaboklab(63.79% 0.0733 -0.1384)
OKLCHoklch(63.79% 0.157 297.9)
XYZxyz(32.1276, 24.1570, 71.3627)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873DD #B8DD73
analogous
#7383DD #9873DD #CD73DD
triadic
#9873DD #DD9873 #73DD98
tetradic
#9873DD #DD7383 #B8DD73 #73DDCD
square
#9873DD #DD7383 #B8DD73 #73DDCD
split-complementary
#9873DD #DDCD73 #83DD73
monochromatic
#572AAC #7442D1 #9873DD #BCA4E9 #E0D5F5

Accessibility & contrast

On white

3.60
#9873DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#9873DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873DD
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873DD#FFFFFF#000000##000000
##9873DD1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5087E1
Deuteranopia (green-blind)
#5886DA
Tritanopia (blue-blind)
#89879E
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9873dd;
/* rgb */ color: rgb(152, 115, 221);
/* oklch */ color: oklch(63.8% 0.157 297.9);
Tailwind
colors: {
  custom: {
    50: '#b99ce8',
    500: '#9873dd',
    950: '#000000',
  },
}
SCSS
$custom: #9873dd;
$custom-light: #b99ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#9873dd",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 221
  },
  "hsl": {
    "h": 260.943,
    "s": 60.92,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63788,
    "c": 0.15662,
    "h": 297.9
  },
  "luminance": 0.24157
}

Semantic roles & 50–950 ramp

primary
#9873DD
secondary
#DBE7C4
accent
#C91D8D
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9873DD

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

Preview Lab → · Contrast checker → · Palette generator →

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