#9871FA#9871FA

#9871FA is a light, vivid violet. Relative luminance 0.254; OKLCH L 65.2% C 0.196 H 293.3°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#9871FA
RGBrgb(152, 113, 250)
HSLhsl(257, 93%, 71%)
HSVhsv(257, 55%, 98%)
CMYKcmyk(39.2%, 54.8%, 0%, 2%)
CIE-LABlab(57.45, 45.52, -63.41)
CIE-LCHlch(57.45, 78.05, 305.67°)
OKLaboklab(65.22% 0.0777 -0.1801)
OKLCHoklch(65.22% 0.196 293.3)
XYZxyz(36.1047, 25.3869, 93.4218)
Luminance0.2539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871FA #D3FA71
analogous
#718EFA #9871FA #DC71FA
triadic
#9871FA #FA9871 #71FA98
tetradic
#9871FA #FA718E #D3FA71 #71FADC
square
#9871FA #FA718E #D3FA71 #71FADC
split-complementary
#9871FA #FADC71 #8EFA71
monochromatic
#4808E8 #6D36F8 #9871FA #C3ACFC #EAE1FE

Accessibility & contrast

On white

3.46
#9871FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#9871FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871FA
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871FA#FFFFFF#000000##000000
##9871FA1.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D8CFF
Deuteranopia (green-blind)
#3888F7
Tritanopia (blue-blind)
#7F8EAB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9871fa;
/* rgb */ color: rgb(152, 113, 250);
/* oklch */ color: oklch(65.2% 0.196 293.3);
Tailwind
colors: {
  custom: {
    50: '#bb9bfd',
    500: '#9871fa',
    950: '#000000',
  },
}
SCSS
$custom: #9871fa;
$custom-light: #bb9bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#9871fa",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 257.08,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.65216,
    "c": 0.19616,
    "h": 293.3
  },
  "luminance": 0.25388
}

Semantic roles & 50–950 ramp

primary
#9871FA
secondary
#EBF5D1
accent
#E600A4
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9871FA

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

Preview Lab → · Contrast checker → · Palette generator →

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