#9873DE#9873DE

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

Color values

HEX#9873DE
RGBrgb(152, 115, 222)
HSLhsl(261, 62%, 66%)
HSVhsv(261, 48%, 87%)
CMYKcmyk(31.5%, 48.2%, 0%, 12.9%)
CIE-LABlab(56.30, 37.15, -49.64)
CIE-LCHlch(56.30, 62.01, 306.81°)
OKLaboklab(63.85% 0.0735 -0.1398)
OKLCHoklch(63.85% 0.158 297.7)
XYZxyz(32.2612, 24.2104, 72.0665)
Luminance0.2421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873DE #B9DE73
analogous
#7383DE #9873DE #CE73DE
triadic
#9873DE #DE9873 #73DE98
tetradic
#9873DE #DE7383 #B9DE73 #73DECE
square
#9873DE #DE7383 #B9DE73 #73DECE
split-complementary
#9873DE #DECE73 #83DE73
monochromatic
#5729AE #7441D2 #9873DE #BCA5EA #E1D6F5

Accessibility & contrast

On white

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

On black

5.84
#9873DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873DE
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873DE#FFFFFF#000000##000000
##9873DE1.003.595.845.84
#FFFFFF3.591.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9873de;
/* rgb */ color: rgb(152, 115, 222);
/* oklch */ color: oklch(63.8% 0.158 297.7);
Tailwind
colors: {
  custom: {
    50: '#b99ce9',
    500: '#9873de',
    950: '#000000',
  },
}
SCSS
$custom: #9873de;
$custom-light: #b99ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#9873de",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 222
  },
  "hsl": {
    "h": 260.748,
    "s": 61.85,
    "l": 66.078
  },
  "oklch": {
    "l": 0.63845,
    "c": 0.1579,
    "h": 297.7
  },
  "luminance": 0.24211
}

Semantic roles & 50–950 ramp

primary
#9873DE
secondary
#DCE8C5
accent
#CA1C8E
background
#FBF9FE
surface
#F6F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9873DE

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

Preview Lab → · Contrast checker → · Palette generator →

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