#9873EF#9873EF

#9873EF is a light, vivid violet. Relative luminance 0.252; OKLCH L 64.9% C 0.180 H 294.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9873EF
RGBrgb(152, 115, 239)
HSLhsl(258, 79%, 69%)
HSVhsv(258, 52%, 94%)
CMYKcmyk(36.4%, 51.9%, 0%, 6.3%)
CIE-LABlab(57.24, 41.52, -57.65)
CIE-LCHlch(57.24, 71.04, 305.76°)
OKLaboklab(64.85% 0.0749 -0.1632)
OKLCHoklch(64.85% 0.18 294.6)
XYZxyz(34.6556, 25.1682, 84.6767)
Luminance0.2517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873EF #CAEF73
analogous
#738CEF #9873EF #D673EF
triadic
#9873EF #EF9873 #73EF98
tetradic
#9873EF #EF738C #CAEF73 #73EFD6
square
#9873EF #EF738C #CAEF73 #73EFD6
split-complementary
#9873EF #EFD673 #8CEF73
monochromatic
#4F18D0 #703CE9 #9873EF #C0AAF5 #E9E1FC

Accessibility & contrast

On white

3.48
#9873EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9873EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873EF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873EF#FFFFFF#000000##000000
##9873EF1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#408BF3
Deuteranopia (green-blind)
#4987EC
Tritanopia (blue-blind)
#838CA6
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9873ef;
/* rgb */ color: rgb(152, 115, 239);
/* oklch */ color: oklch(64.9% 0.180 294.6);
Tailwind
colors: {
  custom: {
    50: '#ba9cf5',
    500: '#9873ef',
    950: '#000000',
  },
}
SCSS
$custom: #9873ef;
$custom-light: #ba9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9873ef",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 239
  },
  "hsl": {
    "h": 257.903,
    "s": 79.487,
    "l": 69.412
  },
  "oklch": {
    "l": 0.64851,
    "c": 0.17956,
    "h": 294.6
  },
  "luminance": 0.25169
}

Semantic roles & 50–950 ramp

primary
#9873EF
secondary
#E6F1CD
accent
#DC0A9D
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873EF

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

Preview Lab → · Contrast checker → · Palette generator →

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