#9871F7#9871F7

#9871F7 is a light, vivid violet. Relative luminance 0.252; OKLCH L 65.0% C 0.192 H 293.8°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#9871F7
RGBrgb(152, 113, 247)
HSLhsl(257, 89%, 71%)
HSVhsv(257, 54%, 97%)
CMYKcmyk(38.5%, 54.3%, 0%, 3.1%)
CIE-LABlab(57.27, 44.73, -62.04)
CIE-LCHlch(57.27, 76.48, 305.79°)
OKLaboklab(65.03% 0.0776 -0.1761)
OKLCHoklch(65.03% 0.192 293.8)
XYZxyz(35.6381, 25.2002, 90.9641)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871F7 #D0F771
analogous
#718DF7 #9871F7 #DB71F7
triadic
#9871F7 #F79871 #71F798
tetradic
#9871F7 #F7718D #D0F771 #71F7DB
square
#9871F7 #F7718D #D0F771 #71F7DB
split-complementary
#9871F7 #F7DB71 #8DF771
monochromatic
#4A0DE1 #6E37F4 #9871F7 #C2ABFA #EAE2FD

Accessibility & contrast

On white

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

On black

6.04
#9871F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871F7
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871F7#FFFFFF#000000##000000
##9871F71.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#318BFC
Deuteranopia (green-blind)
#3C87F4
Tritanopia (blue-blind)
#808DA9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9871f7;
/* rgb */ color: rgb(152, 113, 247);
/* oklch */ color: oklch(65.0% 0.192 293.8);
Tailwind
colors: {
  custom: {
    50: '#bb9bfa',
    500: '#9871f7',
    950: '#000000',
  },
}
SCSS
$custom: #9871f7;
$custom-light: #bb9bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#9871f7",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 257.463,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.65025,
    "c": 0.19245,
    "h": 293.8
  },
  "luminance": 0.25201
}

Semantic roles & 50–950 ramp

primary
#9871F7
secondary
#EAF4D0
accent
#E600A3
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E17
muted
#817E85

Preview Lab

Preview with #9871F7

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

Preview Lab → · Contrast checker → · Palette generator →

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