#9871FF#9871FF

#9871FF is a light, highly saturated violet. Relative luminance 0.257; OKLCH L 65.5% C 0.202 H 292.6°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#9871FF
RGBrgb(152, 113, 255)
HSLhsl(256, 100%, 72%)
HSVhsv(256, 56%, 100%)
CMYKcmyk(40.4%, 55.7%, 0%, 0%)
CIE-LABlab(57.76, 46.84, -65.68)
CIE-LCHlch(57.76, 80.67, 305.49°)
OKLaboklab(65.54% 0.0777 -0.1868)
OKLCHoklch(65.54% 0.202 292.6)
XYZxyz(36.8991, 25.7047, 97.6057)
Luminance0.2571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871FF #D8FF71
analogous
#7191FF #9871FF #DF71FF
triadic
#9871FF #FF9871 #71FF98
tetradic
#9871FF #FF7191 #D8FF71 #71FFDF
square
#9871FF #FF7191 #D8FF71 #71FFDF
split-complementary
#9871FF #FFDF71 #91FF71
monochromatic
#4300F6 #6C34FF #9871FF #C4AEFF #E9E0FF

Accessibility & contrast

On white

3.42
#9871FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#9871FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871FF
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871FF#FFFFFF#000000##000000
##9871FF1.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#238DFF
Deuteranopia (green-blind)
#3088FC
Tritanopia (blue-blind)
#7C8FAD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #9871ff;
/* rgb */ color: rgb(152, 113, 255);
/* oklch */ color: oklch(65.5% 0.202 292.6);
Tailwind
colors: {
  custom: {
    50: '#bc9bff',
    500: '#9871ff',
    950: '#000000',
  },
}
SCSS
$custom: #9871ff;
$custom-light: #bc9bff;
$custom-dark: #000000;
JSON
{
  "hex": "#9871ff",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 255
  },
  "hsl": {
    "h": 256.479,
    "s": 100,
    "l": 72.157
  },
  "oklch": {
    "l": 0.65539,
    "c": 0.20233,
    "h": 292.6
  },
  "luminance": 0.25706
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9871FF

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

Preview Lab → · Contrast checker → · Palette generator →

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