#9873CA#9873CA

#9873CA is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.7% C 0.132 H 302.4°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9873CA
RGBrgb(152, 115, 202)
HSLhsl(266, 45%, 62%)
HSVhsv(266, 43%, 79%)
CMYKcmyk(24.8%, 43.1%, 0%, 20.8%)
CIE-LABlab(55.28, 32.20, -39.95)
CIE-LCHlch(55.28, 51.31, 308.87°)
OKLaboklab(62.75% 0.0707 -0.1115)
OKLCHoklch(62.75% 0.132 302.4)
XYZxyz(29.7380, 23.2011, 58.7773)
Luminance0.2320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873CA #A5CA73
analogous
#737ACA #9873CA #C473CA
triadic
#9873CA #CA9873 #73CA98
tetradic
#9873CA #CA737A #A5CA73 #73CAC4
square
#9873CA #CA737A #A5CA73 #73CAC4
split-complementary
#9873CA #CAC473 #7ACA73
monochromatic
#5B358D #7747B9 #9873CA #B99FDB #D9CCEC

Accessibility & contrast

On white

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

On black

5.64
#9873CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873CA
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873CA#FFFFFF#000000##000000
##9873CA1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9873ca;
/* rgb */ color: rgb(152, 115, 202);
/* oklch */ color: oklch(62.7% 0.132 302.4);
Tailwind
colors: {
  custom: {
    50: '#b89cda',
    500: '#9873ca',
    950: '#000000',
  },
}
SCSS
$custom: #9873ca;
$custom-light: #b89cda;
$custom-dark: #000000;
JSON
{
  "hex": "#9873ca",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 202
  },
  "hsl": {
    "h": 265.517,
    "s": 45.078,
    "l": 62.157
  },
  "oklch": {
    "l": 0.62749,
    "c": 0.13207,
    "h": 302.4
  },
  "luminance": 0.23201
}

Semantic roles & 50–950 ramp

primary
#9873CA
secondary
#CFDCBC
accent
#B82D7D
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#110E15
muted
#807E83

Preview Lab

Preview with #9873CA

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

Preview Lab → · Contrast checker → · Palette generator →

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