#9871F6#9871F6

#9871F6 is a light, vivid violet. Relative luminance 0.251; OKLCH L 65.0% C 0.191 H 293.9°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#9871F6
RGBrgb(152, 113, 246)
HSLhsl(258, 88%, 70%)
HSVhsv(258, 54%, 96%)
CMYKcmyk(38.2%, 54.1%, 0%, 3.5%)
CIE-LABlab(57.21, 44.47, -61.58)
CIE-LCHlch(57.21, 75.96, 305.83°)
OKLaboklab(64.96% 0.0776 -0.1748)
OKLCHoklch(64.96% 0.191 293.9)
XYZxyz(35.4842, 25.1387, 90.1536)
Luminance0.2514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871F6 #CFF671
analogous
#718CF6 #9871F6 #DA71F6
triadic
#9871F6 #F69871 #71F698
tetradic
#9871F6 #F6718C #CFF671 #71F6DA
square
#9871F6 #F6718C #CFF671 #71F6DA
split-complementary
#9871F6 #F6DA71 #8CF671
monochromatic
#4B0EDE #6E37F2 #9871F6 #C2ABFA #EAE2FD

Accessibility & contrast

On white

3.48
#9871F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#9871F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871F6
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871F6#FFFFFF#000000##000000
##9871F61.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#338BFB
Deuteranopia (green-blind)
#3D87F3
Tritanopia (blue-blind)
#808DA9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9871f6;
/* rgb */ color: rgb(152, 113, 246);
/* oklch */ color: oklch(65.0% 0.191 293.9);
Tailwind
colors: {
  custom: {
    50: '#bb9bfa',
    500: '#9871f6',
    950: '#000000',
  },
}
SCSS
$custom: #9871f6;
$custom-light: #bb9bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#9871f6",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 257.594,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.64962,
    "c": 0.19121,
    "h": 293.9
  },
  "luminance": 0.25139
}

Semantic roles & 50–950 ramp

primary
#9871F6
secondary
#E9F4CF
accent
#E501A2
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9871F6

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

Preview Lab → · Contrast checker → · Palette generator →

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