#9873E8#9873E8

#9873E8 is a light, vivid violet. Relative luminance 0.248; OKLCH L 64.4% C 0.171 H 295.8°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9873E8
RGBrgb(152, 115, 232)
HSLhsl(259, 72%, 68%)
HSVhsv(259, 50%, 91%)
CMYKcmyk(34.5%, 50.4%, 0%, 9%)
CIE-LABlab(56.84, 39.70, -54.38)
CIE-LCHlch(56.84, 67.33, 306.14°)
OKLaboklab(64.43% 0.0744 -0.1536)
OKLCHoklch(64.43% 0.171 295.8)
XYZxyz(33.6414, 24.7625, 79.3355)
Luminance0.2476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9873E8 #C3E873
analogous
#7388E8 #9873E8 #D273E8
triadic
#9873E8 #E89873 #73E898
tetradic
#9873E8 #E87388 #C3E873 #73E8D2
square
#9873E8 #E87388 #C3E873 #73E8D2
split-complementary
#9873E8 #E8D273 #88E873
monochromatic
#5320C1 #713EDF #9873E8 #BFA8F1 #E5DCF9

Accessibility & contrast

On white

3.53
#9873E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#9873E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9873E8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9873E8#FFFFFF#000000##000000
##9873E81.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4789EC
Deuteranopia (green-blind)
#4F87E5
Tritanopia (blue-blind)
#868AA3
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9873e8;
/* rgb */ color: rgb(152, 115, 232);
/* oklch */ color: oklch(64.4% 0.171 295.8);
Tailwind
colors: {
  custom: {
    50: '#ba9cf0',
    500: '#9873e8',
    950: '#000000',
  },
}
SCSS
$custom: #9873e8;
$custom-light: #ba9cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#9873e8",
  "rgb": {
    "r": 152,
    "g": 115,
    "b": 232
  },
  "hsl": {
    "h": 258.974,
    "s": 71.779,
    "l": 68.039
  },
  "oklch": {
    "l": 0.64429,
    "c": 0.17068,
    "h": 295.8
  },
  "luminance": 0.24763
}

Semantic roles & 50–950 ramp

primary
#9873E8
secondary
#E2EDCA
accent
#D41296
background
#FBF9FE
surface
#F7F2FD
border
#D0CCD5
text
#120E16
muted
#817E84

Preview Lab

Preview with #9873E8

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

Preview Lab → · Contrast checker → · Palette generator →

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