#9873EA#9873EA

#9873EA is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.5% C 0.173 H 295.5°. Best body text is #000000 at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#9873EA
RGBrgb(152, 115, 234)
HSLhsl(259, 74%, 68%)
HSVhsv(259, 51%, 92%)
CMYKcmyk(35%, 50.9%, 0%, 8.2%)
CIE-LABlab(56.96, 40.22, -55.32)
CIE-LCHlch(56.96, 68.39, 306.02°)
OKLaboklab(64.55% 0.0745 -0.1564)
OKLCHoklch(64.55% 0.173 295.5)
XYZxyz(33.9271, 24.8768, 80.8402)
Luminance0.2488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873EA #C5EA73
analogous
#7389EA #9873EA #D373EA
triadic
#9873EA #EA9873 #73EA98
tetradic
#9873EA #EA7389 #C5EA73 #73EAD3
square
#9873EA #EA7389 #C5EA73 #73EAD3
split-complementary
#9873EA #EAD373 #89EA73
monochromatic
#521EC5 #713EE2 #9873EA #BFA8F2 #E6DDFA

Accessibility & contrast

On white

3.51
#9873EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.98
#9873EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873EA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873EA#FFFFFF#000000##000000
##9873EA1.003.515.985.98
#FFFFFF3.511.0021.0021.00
#0000005.9821.001.001.00
##0000005.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#458AEE
Deuteranopia (green-blind)
#4E87E7
Tritanopia (blue-blind)
#858BA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9873ea;
/* rgb */ color: rgb(152, 115, 234);
/* oklch */ color: oklch(64.5% 0.173 295.5);
Tailwind
colors: {
  custom: {
    50: '#ba9cf1',
    500: '#9873ea',
    950: '#000000',
  },
}
SCSS
$custom: #9873ea;
$custom-light: #ba9cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9873ea",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 234
  },
  "hsl": {
    "h": 258.655,
    "s": 73.913,
    "l": 68.431
  },
  "oklch": {
    "l": 0.64549,
    "c": 0.17323,
    "h": 295.5
  },
  "luminance": 0.24877
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9873EA

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

Preview Lab → · Contrast checker → · Palette generator →

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