#9873C7#9873C7

#9873C7 is a light, vivid violet. Relative luminance 0.231; OKLCH L 62.6% C 0.128 H 303.2°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#9873C7
RGBrgb(152, 115, 199)
HSLhsl(266, 43%, 62%)
HSVhsv(266, 42%, 78%)
CMYKcmyk(23.6%, 42.2%, 0%, 22%)
CIE-LABlab(55.13, 31.48, -38.47)
CIE-LCHlch(55.13, 49.71, 309.29°)
OKLaboklab(62.59% 0.0702 -0.1073)
OKLCHoklch(62.59% 0.128 303.2)
XYZxyz(29.3862, 23.0604, 56.9247)
Luminance0.2306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873C7 #A2C773
analogous
#7378C7 #9873C7 #C273C7
triadic
#9873C7 #C79873 #73C798
tetradic
#9873C7 #C77378 #A2C773 #73C7C2
square
#9873C7 #C77378 #A2C773 #73C7C2
split-complementary
#9873C7 #C7C273 #78C773
monochromatic
#5B3789 #7848B5 #9873C7 #B89FD8 #D8CAEA

Accessibility & contrast

On white

3.74
#9873C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#9873C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873C7
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873C7#FFFFFF#000000##000000
##9873C71.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E83CA
Deuteranopia (green-blind)
#6684C5
Tritanopia (blue-blind)
#908193
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9873c7;
/* rgb */ color: rgb(152, 115, 199);
/* oklch */ color: oklch(62.6% 0.128 303.2);
Tailwind
colors: {
  custom: {
    50: '#b89cd8',
    500: '#9873c7',
    950: '#000000',
  },
}
SCSS
$custom: #9873c7;
$custom-light: #b89cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#9873c7",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 199
  },
  "hsl": {
    "h": 266.429,
    "s": 42.857,
    "l": 61.569
  },
  "oklch": {
    "l": 0.62593,
    "c": 0.12818,
    "h": 303.2
  },
  "luminance": 0.2306
}

Semantic roles & 50–950 ramp

primary
#9873C7
secondary
#CDDBBB
accent
#B6307B
background
#FBF9FD
surface
#F6F2FA
border
#D0CCD3
text
#110E14
muted
#807E83

Preview Lab

Preview with #9873C7

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

Preview Lab → · Contrast checker → · Palette generator →

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