#9871D2#9871D2

#9871D2 is a light, vivid violet. Relative luminance 0.231; OKLCH L 62.8% C 0.146 H 300.9°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9871D2
RGBrgb(152, 113, 210)
HSLhsl(264, 52%, 63%)
HSVhsv(264, 46%, 82%)
CMYKcmyk(27.6%, 46.2%, 0%, 17.6%)
CIE-LABlab(55.21, 35.29, -44.59)
CIE-LCHlch(55.21, 56.87, 308.36°)
OKLaboklab(62.83% 0.0747 -0.125)
OKLCHoklch(62.83% 0.146 300.9)
XYZxyz(30.4842, 23.1387, 63.8205)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871D2 #ABD271
analogous
#717AD2 #9871D2 #C971D2
triadic
#9871D2 #D29871 #71D298
tetradic
#9871D2 #D2717A #ABD271 #71D2C9
square
#9871D2 #D2717A #ABD271 #71D2C9
split-complementary
#9871D2 #D2C971 #7AD271
monochromatic
#5A3098 #7643C3 #9871D2 #BA9FE1 #DBCEEF

Accessibility & contrast

On white

3.73
#9871D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#9871D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871D2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871D2#FFFFFF#000000##000000
##9871D21.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5484D5
Deuteranopia (green-blind)
#5D84D0
Tritanopia (blue-blind)
#8D8297
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9871d2;
/* rgb */ color: rgb(152, 113, 210);
/* oklch */ color: oklch(62.8% 0.146 300.9);
Tailwind
colors: {
  custom: {
    50: '#b89ae0',
    500: '#9871d2',
    950: '#000000',
  },
}
SCSS
$custom: #9871d2;
$custom-light: #b89ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#9871d2",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 210
  },
  "hsl": {
    "h": 264.124,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62831,
    "c": 0.14565,
    "h": 300.9
  },
  "luminance": 0.23139
}

Semantic roles & 50–950 ramp

primary
#9871D2
secondary
#D3E1BE
accent
#BF2682
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9871D2

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

Preview Lab → · Contrast checker → · Palette generator →

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