#9876EF#9876EF

#9876EF is a light, vivid violet. Relative luminance 0.259; OKLCH L 65.3% C 0.175 H 294.0°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#9876EF
RGBrgb(152, 118, 239)
HSLhsl(257, 79%, 70%)
HSVhsv(257, 51%, 94%)
CMYKcmyk(36.4%, 50.6%, 0%, 6.3%)
CIE-LABlab(57.91, 39.83, -56.58)
CIE-LCHlch(57.91, 69.19, 305.14°)
OKLaboklab(65.35% 0.0711 -0.1601)
OKLCHoklch(65.35% 0.175 294)
XYZxyz(35.0033, 25.8635, 84.7926)
Luminance0.2586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9876EF #CDEF76
analogous
#7690EF #9876EF #D576EF
triadic
#9876EF #EF9876 #76EF98
tetradic
#9876EF #EF7690 #CDEF76 #76EFD5
square
#9876EF #EF7690 #CDEF76 #76EFD5
split-complementary
#9876EF #EFD576 #90EF76
monochromatic
#4D19D2 #6F3FE9 #9876EF #C1ADF5 #EAE4FC

Accessibility & contrast

On white

3.40
#9876EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#9876EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9876EF
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9876EF#FFFFFF#000000##000000
##9876EF1.003.406.176.17
#FFFFFF3.401.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#468CF3
Deuteranopia (green-blind)
#4D89EC
Tritanopia (blue-blind)
#838EA8
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9876ef;
/* rgb */ color: rgb(152, 118, 239);
/* oklch */ color: oklch(65.3% 0.175 294.0);
Tailwind
colors: {
  custom: {
    50: '#ba9ef5',
    500: '#9876ef',
    950: '#000000',
  },
}
SCSS
$custom: #9876ef;
$custom-light: #ba9ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#9876ef",
  "rgb": {
    "r": 152,
    "g": 118,
    "b": 239
  },
  "hsl": {
    "h": 256.86,
    "s": 79.085,
    "l": 70
  },
  "oklch": {
    "l": 0.65348,
    "c": 0.17517,
    "h": 294
  },
  "luminance": 0.25864
}

Semantic roles & 50–950 ramp

primary
#9876EF
secondary
#E8F1CF
accent
#DB0AA1
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9876EF

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

Preview Lab → · Contrast checker → · Palette generator →

#9876EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva