#9873FE#9873FE

#9873FE is a light, vivid violet. Relative luminance 0.261; OKLCH L 65.8% C 0.198 H 292.3°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#9873FE
RGBrgb(152, 115, 254)
HSLhsl(256, 99%, 72%)
HSVhsv(256, 55%, 100%)
CMYKcmyk(40.2%, 54.7%, 0%, 0.4%)
CIE-LABlab(58.12, 45.47, -64.53)
CIE-LCHlch(58.12, 78.94, 305.17°)
OKLaboklab(65.79% 0.0754 -0.1834)
OKLCHoklch(65.79% 0.198 292.3)
XYZxyz(36.9642, 26.0916, 96.8353)
Luminance0.2609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873FE #D9FE73
analogous
#7394FE #9873FE #DD73FE
triadic
#9873FE #FE9873 #73FE98
tetradic
#9873FE #FE7394 #D9FE73 #73FEDD
square
#9873FE #FE7394 #D9FE73 #73FEDD
split-complementary
#9873FE #FEDD73 #94FE73
monochromatic
#4202F5 #6B36FE #9873FE #C5B0FE #E9E1FF

Accessibility & contrast

On white

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

On black

6.22
#9873FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873FE
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873FE#FFFFFF#000000##000000
##9873FE1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C8EFF
Deuteranopia (green-blind)
#3689FB
Tritanopia (blue-blind)
#7D91AE
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #9873fe;
/* rgb */ color: rgb(152, 115, 254);
/* oklch */ color: oklch(65.8% 0.198 292.3);
Tailwind
colors: {
  custom: {
    50: '#bc9cff',
    500: '#9873fe',
    950: '#000000',
  },
}
SCSS
$custom: #9873fe;
$custom-light: #bc9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#9873fe",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 254
  },
  "hsl": {
    "h": 255.971,
    "s": 98.582,
    "l": 72.353
  },
  "oklch": {
    "l": 0.65791,
    "c": 0.19834,
    "h": 292.3
  },
  "luminance": 0.26093
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9873FE

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

Preview Lab → · Contrast checker → · Palette generator →

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