#9873DF#9873DF

#9873DF is a light, vivid violet. Relative luminance 0.243; OKLCH L 63.9% C 0.159 H 297.5°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#9873DF
RGBrgb(152, 115, 223)
HSLhsl(261, 63%, 66%)
HSVhsv(261, 48%, 87%)
CMYKcmyk(31.8%, 48.4%, 0%, 12.5%)
CIE-LABlab(56.35, 37.40, -50.12)
CIE-LCHlch(56.35, 62.54, 306.73°)
OKLaboklab(63.9% 0.0736 -0.1412)
OKLCHoklch(63.9% 0.159 297.5)
XYZxyz(32.3957, 24.2642, 72.7744)
Luminance0.2427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873DF #BADF73
analogous
#7384DF #9873DF #CE73DF
triadic
#9873DF #DF9873 #73DF98
tetradic
#9873DF #DF7384 #BADF73 #73DFCE
square
#9873DF #DF7384 #BADF73 #73DFCE
split-complementary
#9873DF #DFCE73 #84DF73
monochromatic
#5628AF #7341D4 #9873DF #BDA5EA #E1D7F6

Accessibility & contrast

On white

3.59
#9873DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#9873DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873DF
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873DF#FFFFFF#000000##000000
##9873DF1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E87E3
Deuteranopia (green-blind)
#5786DC
Tritanopia (blue-blind)
#89879E
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9873df;
/* rgb */ color: rgb(152, 115, 223);
/* oklch */ color: oklch(63.9% 0.159 297.5);
Tailwind
colors: {
  custom: {
    50: '#b99ce9',
    500: '#9873df',
    950: '#000000',
  },
}
SCSS
$custom: #9873df;
$custom-light: #b99ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#9873df",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 223
  },
  "hsl": {
    "h": 260.556,
    "s": 62.791,
    "l": 66.275
  },
  "oklch": {
    "l": 0.63903,
    "c": 0.15919,
    "h": 297.5
  },
  "luminance": 0.24265
}

Semantic roles & 50–950 ramp

primary
#9873DF
secondary
#DCE9C5
accent
#CB1B8E
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9873DF

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

Preview Lab → · Contrast checker → · Palette generator →

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