#9873F7#9873F7

#9873F7 is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.3% C 0.190 H 293.4°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9873F7
RGBrgb(152, 115, 247)
HSLhsl(257, 89%, 71%)
HSVhsv(257, 53%, 97%)
CMYKcmyk(38.5%, 53.4%, 0%, 3.1%)
CIE-LABlab(57.70, 43.61, -61.34)
CIE-LCHlch(57.70, 75.26, 305.41°)
OKLaboklab(65.35% 0.0752 -0.1741)
OKLCHoklch(65.35% 0.19 293.4)
XYZxyz(35.8637, 25.6514, 91.0393)
Luminance0.2565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873F7 #D2F773
analogous
#7390F7 #9873F7 #DA73F7
triadic
#9873F7 #F79873 #73F798
tetradic
#9873F7 #F77390 #D2F773 #73F7DA
square
#9873F7 #F77390 #D2F773 #73F7DA
split-complementary
#9873F7 #F7DA73 #90F773
monochromatic
#490DE3 #6D39F4 #9873F7 #C3ADFA #EAE2FD

Accessibility & contrast

On white

3.43
#9873F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9873F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873F7
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873F7#FFFFFF#000000##000000
##9873F71.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#378CFB
Deuteranopia (green-blind)
#4088F4
Tritanopia (blue-blind)
#808EAA
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9873f7;
/* rgb */ color: rgb(152, 115, 247);
/* oklch */ color: oklch(65.3% 0.190 293.4);
Tailwind
colors: {
  custom: {
    50: '#bb9cfa',
    500: '#9873f7',
    950: '#000000',
  },
}
SCSS
$custom: #9873f7;
$custom-light: #bb9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#9873f7",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 247
  },
  "hsl": {
    "h": 256.818,
    "s": 89.189,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65347,
    "c": 0.18962,
    "h": 293.4
  },
  "luminance": 0.25652
}

Semantic roles & 50–950 ramp

primary
#9873F7
secondary
#EBF4D1
accent
#E600A5
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873F7

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

Preview Lab → · Contrast checker → · Palette generator →

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