#9873F9#9873F9

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

Color values

HEX#9873F9
RGBrgb(152, 115, 249)
HSLhsl(257, 92%, 71%)
HSVhsv(257, 54%, 98%)
CMYKcmyk(39%, 53.8%, 0%, 2.4%)
CIE-LABlab(57.82, 44.14, -62.26)
CIE-LCHlch(57.82, 76.32, 305.34°)
OKLaboklab(65.47% 0.0753 -0.1767)
OKLCHoklch(65.47% 0.192 293.1)
XYZxyz(36.1740, 25.7755, 92.6734)
Luminance0.2578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873F9 #D4F973
analogous
#7391F9 #9873F9 #DB73F9
triadic
#9873F9 #F99873 #73F998
tetradic
#9873F9 #F97391 #D4F973 #73F9DB
square
#9873F9 #F97391 #D4F973 #73F9DB
split-complementary
#9873F9 #F9DB73 #91F973
monochromatic
#470AE8 #6D38F6 #9873F9 #C3AEFC #E9E2FE

Accessibility & contrast

On white

3.41
#9873F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#9873F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873F9
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873F9#FFFFFF#000000##000000
##9873F91.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#348DFE
Deuteranopia (green-blind)
#3D88F6
Tritanopia (blue-blind)
#7F8FAB
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9873f9;
/* rgb */ color: rgb(152, 115, 249);
/* oklch */ color: oklch(65.5% 0.192 293.1);
Tailwind
colors: {
  custom: {
    50: '#bb9cfc',
    500: '#9873f9',
    950: '#000000',
  },
}
SCSS
$custom: #9873f9;
$custom-light: #bb9cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#9873f9",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 249
  },
  "hsl": {
    "h": 256.567,
    "s": 91.781,
    "l": 71.373
  },
  "oklch": {
    "l": 0.65473,
    "c": 0.19212,
    "h": 293.1
  },
  "luminance": 0.25776
}

Semantic roles & 50–950 ramp

primary
#9873F9
secondary
#ECF5D2
accent
#E600A6
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9873F9

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

Preview Lab → · Contrast checker → · Palette generator →

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