#9873FD#9873FD

#9873FD is a light, vivid violet. Relative luminance 0.260; OKLCH L 65.7% C 0.197 H 292.5°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#9873FD
RGBrgb(152, 115, 253)
HSLhsl(256, 97%, 72%)
HSVhsv(256, 55%, 99%)
CMYKcmyk(39.9%, 54.5%, 0%, 0.8%)
CIE-LABlab(58.06, 45.20, -64.08)
CIE-LCHlch(58.06, 78.42, 305.20°)
OKLaboklab(65.73% 0.0754 -0.1821)
OKLCHoklch(65.73% 0.197 292.5)
XYZxyz(36.8045, 26.0277, 95.9942)
Luminance0.2603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873FD #D8FD73
analogous
#7393FD #9873FD #DD73FD
triadic
#9873FD #FD9873 #73FD98
tetradic
#9873FD #FD7393 #D8FD73 #73FDDD
square
#9873FD #FD7393 #D8FD73 #73FDDD
split-complementary
#9873FD #FDDD73 #93FD73
monochromatic
#4303F2 #6C37FC #9873FD #C4AFFE #E9E1FF

Accessibility & contrast

On white

3.38
#9873FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#9873FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873FD
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873FD#FFFFFF#000000##000000
##9873FD1.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8DFF
Deuteranopia (green-blind)
#3889FA
Tritanopia (blue-blind)
#7D90AD
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9873fd;
/* rgb */ color: rgb(152, 115, 253);
/* oklch */ color: oklch(65.7% 0.197 292.5);
Tailwind
colors: {
  custom: {
    50: '#bc9cff',
    500: '#9873fd',
    950: '#000000',
  },
}
SCSS
$custom: #9873fd;
$custom-light: #bc9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#9873fd",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 253
  },
  "hsl": {
    "h": 256.087,
    "s": 97.183,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65727,
    "c": 0.19709,
    "h": 292.5
  },
  "luminance": 0.26029
}

Semantic roles & 50–950 ramp

primary
#9873FD
secondary
#EEF7D4
accent
#E600A8
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9873FD

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

Preview Lab → · Contrast checker → · Palette generator →

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