#9873EE#9873EE

#9873EE is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.8% C 0.178 H 294.8°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#9873EE
RGBrgb(152, 115, 238)
HSLhsl(258, 78%, 69%)
HSVhsv(258, 52%, 93%)
CMYKcmyk(36.1%, 51.7%, 0%, 6.7%)
CIE-LABlab(57.18, 41.26, -57.18)
CIE-LCHlch(57.18, 70.51, 305.81°)
OKLaboklab(64.79% 0.0748 -0.1619)
OKLCHoklch(64.79% 0.178 294.8)
XYZxyz(34.5083, 25.1092, 83.9008)
Luminance0.2511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873EE #C9EE73
analogous
#738CEE #9873EE #D673EE
triadic
#9873EE #EE9873 #73EE98
tetradic
#9873EE #EE738C #C9EE73 #73EED6
square
#9873EE #EE738C #C9EE73 #73EED6
split-complementary
#9873EE #EED673 #8CEE73
monochromatic
#4F19CE #703CE7 #9873EE #C0AAF5 #E8E0FB

Accessibility & contrast

On white

3.49
#9873EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#9873EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873EE
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873EE#FFFFFF#000000##000000
##9873EE1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#418AF2
Deuteranopia (green-blind)
#4A87EB
Tritanopia (blue-blind)
#838CA6
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9873ee;
/* rgb */ color: rgb(152, 115, 238);
/* oklch */ color: oklch(64.8% 0.178 294.8);
Tailwind
colors: {
  custom: {
    50: '#ba9cf4',
    500: '#9873ee',
    950: '#000000',
  },
}
SCSS
$custom: #9873ee;
$custom-light: #ba9cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#9873ee",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 238
  },
  "hsl": {
    "h": 258.049,
    "s": 78.344,
    "l": 69.216
  },
  "oklch": {
    "l": 0.6479,
    "c": 0.1783,
    "h": 294.8
  },
  "luminance": 0.2511
}

Semantic roles & 50–950 ramp

primary
#9873EE
secondary
#E6F0CD
accent
#DB0B9C
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873EE

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

Preview Lab → · Contrast checker → · Palette generator →

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