#9873E9#9873E9

#9873E9 is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.5% C 0.172 H 295.7°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#9873E9
RGBrgb(152, 115, 233)
HSLhsl(259, 73%, 68%)
HSVhsv(259, 51%, 91%)
CMYKcmyk(34.8%, 50.6%, 0%, 8.6%)
CIE-LABlab(56.90, 39.96, -54.85)
CIE-LCHlch(56.90, 67.86, 306.08°)
OKLaboklab(64.49% 0.0745 -0.155)
OKLCHoklch(64.49% 0.172 295.7)
XYZxyz(33.7839, 24.8195, 80.0857)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873E9 #C4E973
analogous
#7389E9 #9873E9 #D373E9
triadic
#9873E9 #E99873 #73E998
tetradic
#9873E9 #E97389 #C4E973 #73E9D3
square
#9873E9 #E97389 #C4E973 #73E9D3
split-complementary
#9873E9 #E9D373 #89E973
monochromatic
#521FC3 #713EE1 #9873E9 #BFA8F1 #E6DDFA

Accessibility & contrast

On white

3.52
#9873E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#9873E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873E9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873E9#FFFFFF#000000##000000
##9873E91.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4689ED
Deuteranopia (green-blind)
#4E87E6
Tritanopia (blue-blind)
#858AA3
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9873e9;
/* rgb */ color: rgb(152, 115, 233);
/* oklch */ color: oklch(64.5% 0.172 295.7);
Tailwind
colors: {
  custom: {
    50: '#ba9cf1',
    500: '#9873e9',
    950: '#000000',
  },
}
SCSS
$custom: #9873e9;
$custom-light: #ba9cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9873e9",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 233
  },
  "hsl": {
    "h": 258.814,
    "s": 72.84,
    "l": 68.235
  },
  "oklch": {
    "l": 0.64489,
    "c": 0.17196,
    "h": 295.7
  },
  "luminance": 0.2482
}

Semantic roles & 50–950 ramp

primary
#9873E9
secondary
#E3EECA
accent
#D51197
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873E9

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

Preview Lab → · Contrast checker → · Palette generator →

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