#9871D3#9871D3

#9871D3 is a light, vivid violet. Relative luminance 0.232; OKLCH L 62.9% C 0.147 H 300.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#9871D3
RGBrgb(152, 113, 211)
HSLhsl(264, 53%, 64%)
HSVhsv(264, 46%, 83%)
CMYKcmyk(28%, 46.4%, 0%, 17.3%)
CIE-LABlab(55.27, 35.54, -45.08)
CIE-LCHlch(55.27, 57.40, 308.25°)
OKLaboklab(62.89% 0.0748 -0.1264)
OKLCHoklch(62.89% 0.147 300.6)
XYZxyz(30.6092, 23.1887, 64.4787)
Luminance0.2319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871D3 #ACD371
analogous
#717BD3 #9871D3 #C971D3
triadic
#9871D3 #D39871 #71D398
tetradic
#9871D3 #D3717B #ACD371 #71D3C9
square
#9871D3 #D3717B #ACD371 #71D3C9
split-complementary
#9871D3 #D3C971 #7BD371
monochromatic
#5A309A #7642C5 #9871D3 #BAA0E1 #DCCEF0

Accessibility & contrast

On white

3.72
#9871D3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#9871D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871D3
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871D3#FFFFFF#000000##000000
##9871D31.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5484D7
Deuteranopia (green-blind)
#5D84D1
Tritanopia (blue-blind)
#8D8398
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9871d3;
/* rgb */ color: rgb(152, 113, 211);
/* oklch */ color: oklch(62.9% 0.147 300.6);
Tailwind
colors: {
  custom: {
    50: '#b99ae1',
    500: '#9871d3',
    950: '#000000',
  },
}
SCSS
$custom: #9871d3;
$custom-light: #b99ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#9871d3",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 211
  },
  "hsl": {
    "h": 263.878,
    "s": 52.688,
    "l": 63.529
  },
  "oklch": {
    "l": 0.62886,
    "c": 0.14693,
    "h": 300.6
  },
  "luminance": 0.23189
}

Semantic roles & 50–950 ramp

primary
#9871D3
secondary
#D3E1BF
accent
#C02583
background
#FBF9FD
surface
#F6F2FB
border
#D0CCD4
text
#120E15
muted
#817E83

Preview Lab

Preview with #9871D3

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

Preview Lab → · Contrast checker → · Palette generator →

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