#9873ED#9873ED

#9873ED is a light, vivid violet. Relative luminance 0.251; OKLCH L 64.7% C 0.177 H 295.0°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9873ED
RGBrgb(152, 115, 237)
HSLhsl(258, 77%, 69%)
HSVhsv(258, 51%, 93%)
CMYKcmyk(35.9%, 51.5%, 0%, 7.1%)
CIE-LABlab(57.12, 41.00, -56.72)
CIE-LCHlch(57.12, 69.98, 305.86°)
OKLaboklab(64.73% 0.0747 -0.1605)
OKLCHoklch(64.73% 0.177 295)
XYZxyz(34.3618, 25.0506, 83.1292)
Luminance0.2505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873ED #C8ED73
analogous
#738BED #9873ED #D573ED
triadic
#9873ED #ED9873 #73ED98
tetradic
#9873ED #ED738B #C8ED73 #73EDD5
square
#9873ED #ED738B #C8ED73 #73EDD5
split-complementary
#9873ED #EDD573 #8BED73
monochromatic
#501ACB #703DE6 #9873ED #C0A9F4 #E8DFFB

Accessibility & contrast

On white

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

On black

6.01
#9873ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873ED
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873ED#FFFFFF#000000##000000
##9873ED1.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#428AF1
Deuteranopia (green-blind)
#4B87EA
Tritanopia (blue-blind)
#848BA5
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9873ed;
/* rgb */ color: rgb(152, 115, 237);
/* oklch */ color: oklch(64.7% 0.177 295.0);
Tailwind
colors: {
  custom: {
    50: '#ba9cf3',
    500: '#9873ed',
    950: '#000000',
  },
}
SCSS
$custom: #9873ed;
$custom-light: #ba9cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#9873ed",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 237
  },
  "hsl": {
    "h": 258.197,
    "s": 77.215,
    "l": 69.02
  },
  "oklch": {
    "l": 0.64729,
    "c": 0.17703,
    "h": 295
  },
  "luminance": 0.25051
}

Semantic roles & 50–950 ramp

primary
#9873ED
secondary
#E5F0CC
accent
#D90C9B
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E17
muted
#817E85

Preview Lab

Preview with #9873ED

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

Preview Lab → · Contrast checker → · Palette generator →

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