#9871EF#9871EF

#9871EF is a light, vivid violet. Relative luminance 0.247; OKLCH L 64.5% C 0.182 H 295.1°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#9871EF
RGBrgb(152, 113, 239)
HSLhsl(259, 80%, 69%)
HSVhsv(259, 53%, 94%)
CMYKcmyk(36.4%, 52.7%, 0%, 6.3%)
CIE-LABlab(56.80, 42.64, -58.35)
CIE-LCHlch(56.80, 72.27, 306.16°)
OKLaboklab(64.52% 0.0773 -0.1653)
OKLCHoklch(64.52% 0.182 295.1)
XYZxyz(34.4300, 24.7170, 84.6015)
Luminance0.2472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871EF #C8EF71
analogous
#7189EF #9871EF #D771EF
triadic
#9871EF #EF9871 #71EF98
tetradic
#9871EF #EF7189 #C8EF71 #71EFD7
square
#9871EF #EF7189 #C8EF71 #71EFD7
split-complementary
#9871EF #EFD771 #89EF71
monochromatic
#5017CE #703AE9 #9871EF #C0A8F5 #E8DFFB

Accessibility & contrast

On white

3.53
#9871EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#9871EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871EF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871EF#FFFFFF#000000##000000
##9871EF1.003.535.945.94
#FFFFFF3.531.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C89F3
Deuteranopia (green-blind)
#4686EC
Tritanopia (blue-blind)
#838BA5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9871ef;
/* rgb */ color: rgb(152, 113, 239);
/* oklch */ color: oklch(64.5% 0.182 295.1);
Tailwind
colors: {
  custom: {
    50: '#ba9bf5',
    500: '#9871ef',
    950: '#000000',
  },
}
SCSS
$custom: #9871ef;
$custom-light: #ba9bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9871ef",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 258.571,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.64524,
    "c": 0.18247,
    "h": 295.1
  },
  "luminance": 0.24718
}

Semantic roles & 50–950 ramp

primary
#9871EF
secondary
#E5F0CB
accent
#DC099B
background
#FBF9FF
surface
#F7F2FE
border
#D0CCD6
text
#120E17
muted
#817E85

Preview Lab

Preview with #9871EF

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

Preview Lab → · Contrast checker → · Palette generator →

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