#9873DA#9873DA

#9873DA is a light, vivid violet. Relative luminance 0.240; OKLCH L 63.6% C 0.153 H 298.5°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9873DA
RGBrgb(152, 115, 218)
HSLhsl(262, 58%, 65%)
HSVhsv(262, 47%, 85%)
CMYKcmyk(30.3%, 47.2%, 0%, 14.5%)
CIE-LABlab(56.09, 36.14, -47.73)
CIE-LCHlch(56.09, 59.87, 307.13°)
OKLaboklab(63.62% 0.073 -0.1342)
OKLCHoklch(63.62% 0.153 298.5)
XYZxyz(31.7315, 23.9985, 69.2765)
Luminance0.2400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873DA #B5DA73
analogous
#7382DA #9873DA #CB73DA
triadic
#9873DA #DA9873 #73DA98
tetradic
#9873DA #DA7382 #B5DA73 #73DACB
square
#9873DA #DA7382 #B5DA73 #73DACB
split-complementary
#9873DA #DACB73 #82DA73
monochromatic
#582CA7 #7443CD #9873DA #BCA3E7 #DFD4F4

Accessibility & contrast

On white

3.62
#9873DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#9873DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873DA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873DA#FFFFFF#000000##000000
##9873DA1.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5286DE
Deuteranopia (green-blind)
#5A86D7
Tritanopia (blue-blind)
#8A869C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9873da;
/* rgb */ color: rgb(152, 115, 218);
/* oklch */ color: oklch(63.6% 0.153 298.5);
Tailwind
colors: {
  custom: {
    50: '#b99ce6',
    500: '#9873da',
    950: '#000000',
  },
}
SCSS
$custom: #9873da;
$custom-light: #b99ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#9873da",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 218
  },
  "hsl": {
    "h": 261.553,
    "s": 58.192,
    "l": 65.294
  },
  "oklch": {
    "l": 0.63618,
    "c": 0.15276,
    "h": 298.5
  },
  "luminance": 0.23999
}

Semantic roles & 50–950 ramp

primary
#9873DA
secondary
#D9E6C3
accent
#C6208A
background
#FBF9FE
surface
#F6F2FC
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9873DA

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

Preview Lab → · Contrast checker → · Palette generator →

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