#9873CB#9873CB

#9873CB is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.8% C 0.133 H 302.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#9873CB
RGBrgb(152, 115, 203)
HSLhsl(265, 46%, 62%)
HSVhsv(265, 43%, 80%)
CMYKcmyk(25.1%, 43.3%, 0%, 20.4%)
CIE-LABlab(55.33, 32.44, -40.44)
CIE-LCHlch(55.33, 51.85, 308.74°)
OKLaboklab(62.8% 0.0709 -0.113)
OKLCHoklch(62.8% 0.133 302.1)
XYZxyz(29.8567, 23.2486, 59.4028)
Luminance0.2325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873CB #A6CB73
analogous
#737ACB #9873CB #C473CB
triadic
#9873CB #CB9873 #73CB98
tetradic
#9873CB #CB737A #A6CB73 #73CBC4
square
#9873CB #CB737A #A6CB73 #73CBC4
split-complementary
#9873CB #CBC473 #7ACB73
monochromatic
#5B358F #7746BA #9873CB #B9A0DC #DACCEC

Accessibility & contrast

On white

3.72
#9873CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#9873CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873CB
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873CB#FFFFFF#000000##000000
##9873CB1.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C84CE
Deuteranopia (green-blind)
#6484C9
Tritanopia (blue-blind)
#8F8295
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9873cb;
/* rgb */ color: rgb(152, 115, 203);
/* oklch */ color: oklch(62.8% 0.133 302.1);
Tailwind
colors: {
  custom: {
    50: '#b89cdb',
    500: '#9873cb',
    950: '#000000',
  },
}
SCSS
$custom: #9873cb;
$custom-light: #b89cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#9873cb",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 203
  },
  "hsl": {
    "h": 265.227,
    "s": 45.833,
    "l": 62.353
  },
  "oklch": {
    "l": 0.62801,
    "c": 0.13337,
    "h": 302.1
  },
  "luminance": 0.23249
}

Semantic roles & 50–950 ramp

primary
#9873CB
secondary
#CFDDBD
accent
#B92C7E
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9873CB

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

Preview Lab → · Contrast checker → · Palette generator →

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