#9873DC#9873DC

#9873DC is a light, vivid violet. Relative luminance 0.241; OKLCH L 63.7% C 0.155 H 298.1°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#9873DC
RGBrgb(152, 115, 220)
HSLhsl(261, 60%, 66%)
HSVhsv(261, 48%, 86%)
CMYKcmyk(30.9%, 47.7%, 0%, 13.7%)
CIE-LABlab(56.19, 36.65, -48.69)
CIE-LCHlch(56.19, 60.94, 306.97°)
OKLaboklab(63.73% 0.0732 -0.137)
OKLCHoklch(63.73% 0.155 298.1)
XYZxyz(31.9948, 24.1039, 70.6632)
Luminance0.2410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873DC #B7DC73
analogous
#7382DC #9873DC #CC73DC
triadic
#9873DC #DC9873 #73DC98
tetradic
#9873DC #DC7382 #B7DC73 #73DCCC
square
#9873DC #DC7382 #B7DC73 #73DCCC
split-complementary
#9873DC #DCCC73 #82DC73
monochromatic
#572BAA #7442D0 #9873DC #BCA4E8 #E0D5F4

Accessibility & contrast

On white

3.61
#9873DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#9873DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873DC
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873DC#FFFFFF#000000##000000
##9873DC1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5187E0
Deuteranopia (green-blind)
#5986D9
Tritanopia (blue-blind)
#8A879D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9873dc;
/* rgb */ color: rgb(152, 115, 220);
/* oklch */ color: oklch(63.7% 0.155 298.1);
Tailwind
colors: {
  custom: {
    50: '#b99ce7',
    500: '#9873dc',
    950: '#000000',
  },
}
SCSS
$custom: #9873dc;
$custom-light: #b99ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#9873dc",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 220
  },
  "hsl": {
    "h": 261.143,
    "s": 60,
    "l": 65.686
  },
  "oklch": {
    "l": 0.63731,
    "c": 0.15533,
    "h": 298.1
  },
  "luminance": 0.24104
}

Semantic roles & 50–950 ramp

primary
#9873DC
secondary
#DBE7C4
accent
#C81E8C
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9873DC

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

Preview Lab → · Contrast checker → · Palette generator →

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