#9873DB#9873DB

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

Color values

HEX#9873DB
RGBrgb(152, 115, 219)
HSLhsl(261, 59%, 65%)
HSVhsv(261, 47%, 86%)
CMYKcmyk(30.6%, 47.5%, 0%, 14.1%)
CIE-LABlab(56.14, 36.39, -48.21)
CIE-LCHlch(56.14, 60.40, 307.05°)
OKLaboklab(63.68% 0.0731 -0.1356)
OKLCHoklch(63.68% 0.154 298.3)
XYZxyz(31.8627, 24.0510, 69.9677)
Luminance0.2405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873DB #B6DB73
analogous
#7382DB #9873DB #CC73DB
triadic
#9873DB #DB9873 #73DB98
tetradic
#9873DB #DB7382 #B6DB73 #73DBCC
square
#9873DB #DB7382 #B6DB73 #73DBCC
split-complementary
#9873DB #DBCC73 #82DB73
monochromatic
#582BA8 #7442CE #9873DB #BCA4E8 #E0D4F4

Accessibility & contrast

On white

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

On black

5.81
#9873DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873DB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873DB#FFFFFF#000000##000000
##9873DB1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5187DF
Deuteranopia (green-blind)
#5A86D8
Tritanopia (blue-blind)
#8A869D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #9873db;
/* rgb */ color: rgb(152, 115, 219);
/* oklch */ color: oklch(63.7% 0.154 298.3);
Tailwind
colors: {
  custom: {
    50: '#b99ce6',
    500: '#9873db',
    950: '#000000',
  },
}
SCSS
$custom: #9873db;
$custom-light: #b99ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9873db",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 219
  },
  "hsl": {
    "h": 261.346,
    "s": 59.091,
    "l": 65.49
  },
  "oklch": {
    "l": 0.63675,
    "c": 0.15405,
    "h": 298.3
  },
  "luminance": 0.24051
}

Semantic roles & 50–950 ramp

primary
#9873DB
secondary
#DAE6C3
accent
#C71F8B
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9873DB

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

Preview Lab → · Contrast checker → · Palette generator →

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