#9873EB#9873EB

#9873EB is a light, vivid violet. Relative luminance 0.249; OKLCH L 64.6% C 0.174 H 295.3°. Best body text is #000000 at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#9873EB
RGBrgb(152, 115, 235)
HSLhsl(259, 75%, 69%)
HSVhsv(259, 51%, 92%)
CMYKcmyk(35.3%, 51.1%, 0%, 7.8%)
CIE-LABlab(57.01, 40.48, -55.78)
CIE-LCHlch(57.01, 68.92, 305.97°)
OKLaboklab(64.61% 0.0746 -0.1577)
OKLCHoklch(64.61% 0.175 295.3)
XYZxyz(34.0712, 24.9344, 81.5989)
Luminance0.2493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873EB #C6EB73
analogous
#738AEB #9873EB #D473EB
triadic
#9873EB #EB9873 #73EB98
tetradic
#9873EB #EB738A #C6EB73 #73EBD4
square
#9873EB #EB738A #C6EB73 #73EBD4
split-complementary
#9873EB #EBD473 #8AEB73
monochromatic
#511CC7 #713DE3 #9873EB #BFA9F3 #E7DEFA

Accessibility & contrast

On white

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

On black

5.99
#9873EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873EB
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873EB#FFFFFF#000000##000000
##9873EB1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#448AEF
Deuteranopia (green-blind)
#4D87E8
Tritanopia (blue-blind)
#848BA4
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9873eb;
/* rgb */ color: rgb(152, 115, 235);
/* oklch */ color: oklch(64.6% 0.174 295.3);
Tailwind
colors: {
  custom: {
    50: '#ba9cf2',
    500: '#9873eb',
    950: '#000000',
  },
}
SCSS
$custom: #9873eb;
$custom-light: #ba9cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9873eb",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 235
  },
  "hsl": {
    "h": 258.5,
    "s": 75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.64609,
    "c": 0.1745,
    "h": 295.3
  },
  "luminance": 0.24935
}

Semantic roles & 50–950 ramp

primary
#9873EB
secondary
#E4EFCB
accent
#D70E99
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873EB

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

Preview Lab → · Contrast checker → · Palette generator →

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