#9873F8#9873F8

#9873F8 is a light, vivid violet. Relative luminance 0.257; OKLCH L 65.4% C 0.191 H 293.2°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9873F8
RGBrgb(152, 115, 248)
HSLhsl(257, 90%, 71%)
HSVhsv(257, 54%, 97%)
CMYKcmyk(38.7%, 53.6%, 0%, 2.7%)
CIE-LABlab(57.76, 43.88, -61.80)
CIE-LCHlch(57.76, 75.79, 305.38°)
OKLaboklab(65.41% 0.0753 -0.1754)
OKLCHoklch(65.41% 0.191 293.2)
XYZxyz(36.0184, 25.7133, 91.8542)
Luminance0.2571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873F8 #D3F873
analogous
#7390F8 #9873F8 #DA73F8
triadic
#9873F8 #F89873 #73F898
tetradic
#9873F8 #F87390 #D3F873 #73F8DA
square
#9873F8 #F87390 #D3F873 #73F8DA
split-complementary
#9873F8 #F8DA73 #90F873
monochromatic
#480BE5 #6D39F5 #9873F8 #C3ADFB #EAE2FE

Accessibility & contrast

On white

3.42
#9873F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9873F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873F8
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873F8#FFFFFF#000000##000000
##9873F81.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#358CFD
Deuteranopia (green-blind)
#3E88F5
Tritanopia (blue-blind)
#7F8FAB
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9873f8;
/* rgb */ color: rgb(152, 115, 248);
/* oklch */ color: oklch(65.4% 0.191 293.2);
Tailwind
colors: {
  custom: {
    50: '#bb9cfb',
    500: '#9873f8',
    950: '#000000',
  },
}
SCSS
$custom: #9873f8;
$custom-light: #bb9cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#9873f8",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 248
  },
  "hsl": {
    "h": 256.692,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.65409,
    "c": 0.19086,
    "h": 293.2
  },
  "luminance": 0.25714
}

Semantic roles & 50–950 ramp

primary
#9873F8
secondary
#EBF5D2
accent
#E600A6
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873F8

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

Preview Lab → · Contrast checker → · Palette generator →

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