#9873FA#9873FA

#9873FA is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.5% C 0.193 H 292.9°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9873FA
RGBrgb(152, 115, 250)
HSLhsl(256, 93%, 72%)
HSVhsv(256, 54%, 98%)
CMYKcmyk(39.2%, 54%, 0%, 2%)
CIE-LABlab(57.88, 44.41, -62.71)
CIE-LCHlch(57.88, 76.84, 305.30°)
OKLaboklab(65.54% 0.0753 -0.1781)
OKLCHoklch(65.54% 0.193 292.9)
XYZxyz(36.3303, 25.8381, 93.4970)
Luminance0.2584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873FA #D5FA73
analogous
#7392FA #9873FA #DB73FA
triadic
#9873FA #FA9873 #73FA98
tetradic
#9873FA #FA7392 #D5FA73 #73FADB
square
#9873FA #FA7392 #D5FA73 #73FADB
split-complementary
#9873FA #FADB73 #92FA73
monochromatic
#4608EA #6D38F8 #9873FA #C3AEFC #E9E1FE

Accessibility & contrast

On white

3.40
#9873FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9873FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873FA
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873FA#FFFFFF#000000##000000
##9873FA1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#328DFF
Deuteranopia (green-blind)
#3C89F7
Tritanopia (blue-blind)
#7E8FAC
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9873fa;
/* rgb */ color: rgb(152, 115, 250);
/* oklch */ color: oklch(65.5% 0.193 292.9);
Tailwind
colors: {
  custom: {
    50: '#bb9cfd',
    500: '#9873fa',
    950: '#000000',
  },
}
SCSS
$custom: #9873fa;
$custom-light: #bb9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9873fa",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 250
  },
  "hsl": {
    "h": 256.444,
    "s": 93.103,
    "l": 71.569
  },
  "oklch": {
    "l": 0.65536,
    "c": 0.19336,
    "h": 292.9
  },
  "luminance": 0.25839
}

Semantic roles & 50–950 ramp

primary
#9873FA
secondary
#ECF6D3
accent
#E600A7
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9873FA

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

Preview Lab → · Contrast checker → · Palette generator →

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