#9871FB#9871FB

#9871FB is a light, vivid violet. Relative luminance 0.255; OKLCH L 65.3% C 0.197 H 293.2°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#9871FB
RGBrgb(152, 113, 251)
HSLhsl(257, 95%, 71%)
HSVhsv(257, 55%, 98%)
CMYKcmyk(39.4%, 55%, 0%, 1.6%)
CIE-LABlab(57.51, 45.78, -63.86)
CIE-LCHlch(57.51, 78.58, 305.64°)
OKLaboklab(65.28% 0.0777 -0.1815)
OKLCHoklch(65.28% 0.197 293.2)
XYZxyz(36.2620, 25.4498, 94.2498)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871FB #D4FB71
analogous
#718FFB #9871FB #DD71FB
triadic
#9871FB #FB9871 #71FB98
tetradic
#9871FB #FB718F #D4FB71 #71FBDD
square
#9871FB #FB718F #D4FB71 #71FBDD
split-complementary
#9871FB #FBDD71 #8FFB71
monochromatic
#4707EB #6D35F9 #9871FB #C3ADFD #E9E1FE

Accessibility & contrast

On white

3.45
#9871FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#9871FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871FB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871FB#FFFFFF#000000##000000
##9871FB1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B8CFF
Deuteranopia (green-blind)
#3688F8
Tritanopia (blue-blind)
#7E8EAB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9871fb;
/* rgb */ color: rgb(152, 113, 251);
/* oklch */ color: oklch(65.3% 0.197 293.2);
Tailwind
colors: {
  custom: {
    50: '#bb9bfd',
    500: '#9871fb',
    950: '#000000',
  },
}
SCSS
$custom: #9871fb;
$custom-light: #bb9bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9871fb",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 256.957,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.6528,
    "c": 0.1974,
    "h": 293.2
  },
  "luminance": 0.25451
}

Semantic roles & 50–950 ramp

primary
#9871FB
secondary
#ECF6D2
accent
#E600A5
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9871FB

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

Preview Lab → · Contrast checker → · Palette generator →

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