#9873FB#9873FB

#9873FB is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.6% C 0.195 H 292.8°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#9873FB
RGBrgb(152, 115, 251)
HSLhsl(256, 94%, 72%)
HSVhsv(256, 54%, 98%)
CMYKcmyk(39.4%, 54.2%, 0%, 1.6%)
CIE-LABlab(57.94, 44.67, -63.17)
CIE-LCHlch(57.94, 77.37, 305.27°)
OKLaboklab(65.6% 0.0754 -0.1794)
OKLCHoklch(65.6% 0.195 292.8)
XYZxyz(36.4875, 25.9010, 94.3250)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873FB #D6FB73
analogous
#7392FB #9873FB #DC73FB
triadic
#9873FB #FB9873 #73FB98
tetradic
#9873FB #FB7392 #D6FB73 #73FBDC
square
#9873FB #FB7392 #D6FB73 #73FBDC
split-complementary
#9873FB #FBDC73 #92FB73
monochromatic
#4507ED #6C38F9 #9873FB #C4AFFD #E9E1FE

Accessibility & contrast

On white

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

On black

6.18
#9873FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873FB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873FB#FFFFFF#000000##000000
##9873FB1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#318DFF
Deuteranopia (green-blind)
#3A89F8
Tritanopia (blue-blind)
#7E90AC
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9873fb;
/* rgb */ color: rgb(152, 115, 251);
/* oklch */ color: oklch(65.6% 0.195 292.8);
Tailwind
colors: {
  custom: {
    50: '#bb9cfd',
    500: '#9873fb',
    950: '#000000',
  },
}
SCSS
$custom: #9873fb;
$custom-light: #bb9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9873fb",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 251
  },
  "hsl": {
    "h": 256.324,
    "s": 94.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.65599,
    "c": 0.19461,
    "h": 292.8
  },
  "luminance": 0.25902
}

Semantic roles & 50–950 ramp

primary
#9873FB
secondary
#EDF6D4
accent
#E600A7
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9873FB

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

Preview Lab → · Contrast checker → · Palette generator →

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