#9871FE#9871FE

#9871FE is a light, highly saturated violet. Relative luminance 0.256; OKLCH L 65.5% C 0.201 H 292.7°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#9871FE
RGBrgb(152, 113, 254)
HSLhsl(257, 99%, 72%)
HSVhsv(257, 56%, 100%)
CMYKcmyk(40.2%, 55.5%, 0%, 0.4%)
CIE-LABlab(57.69, 46.57, -65.22)
CIE-LCHlch(57.69, 80.15, 305.53°)
OKLaboklab(65.47% 0.0777 -0.1855)
OKLCHoklch(65.47% 0.201 292.7)
XYZxyz(36.7386, 25.6404, 96.7601)
Luminance0.2564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871FE #D7FE71
analogous
#7191FE #9871FE #DF71FE
triadic
#9871FE #FE9871 #71FE98
tetradic
#9871FE #FE7191 #D7FE71 #71FEDF
square
#9871FE #FE7191 #D7FE71 #71FEDF
split-complementary
#9871FE #FEDF71 #91FE71
monochromatic
#4402F3 #6C34FE #9871FE #C4AEFE #E9E1FF

Accessibility & contrast

On white

3.43
#9871FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#9871FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871FE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871FE#FFFFFF#000000##000000
##9871FE1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#258CFF
Deuteranopia (green-blind)
#3288FB
Tritanopia (blue-blind)
#7D8FAD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9871fe;
/* rgb */ color: rgb(152, 113, 254);
/* oklch */ color: oklch(65.5% 0.201 292.7);
Tailwind
colors: {
  custom: {
    50: '#bc9bff',
    500: '#9871fe',
    950: '#000000',
  },
}
SCSS
$custom: #9871fe;
$custom-light: #bc9bff;
$custom-dark: #000000;
JSON
{
  "hex": "#9871fe",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 256.596,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.65474,
    "c": 0.2011,
    "h": 292.7
  },
  "luminance": 0.25641
}

Semantic roles & 50–950 ramp

primary
#9871FE
secondary
#EDF7D4
accent
#E600A6
background
#FCF9FF
surface
#F8F2FF
border
#D1CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9871FE

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

Preview Lab → · Contrast checker → · Palette generator →

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