#9871F9#9871F9

#9871F9 is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.2% C 0.195 H 293.5°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#9871F9
RGBrgb(152, 113, 249)
HSLhsl(257, 92%, 71%)
HSVhsv(257, 55%, 98%)
CMYKcmyk(39%, 54.6%, 0%, 2.4%)
CIE-LABlab(57.39, 45.25, -62.95)
CIE-LCHlch(57.39, 77.53, 305.71°)
OKLaboklab(65.15% 0.0777 -0.1788)
OKLCHoklch(65.15% 0.195 293.5)
XYZxyz(35.9484, 25.3243, 92.5982)
Luminance0.2532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871F9 #D2F971
analogous
#718EF9 #9871F9 #DC71F9
triadic
#9871F9 #F99871 #71F998
tetradic
#9871F9 #F9718E #D2F971 #71F9DC
square
#9871F9 #F9718E #D2F971 #71F9DC
split-complementary
#9871F9 #F9DC71 #8EF971
monochromatic
#490AE6 #6D36F7 #9871F9 #C3ACFB #EAE2FE

Accessibility & contrast

On white

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

On black

6.06
#9871F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871F9
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871F9#FFFFFF#000000##000000
##9871F91.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E8BFE
Deuteranopia (green-blind)
#3987F6
Tritanopia (blue-blind)
#7F8EAA
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9871f9;
/* rgb */ color: rgb(152, 113, 249);
/* oklch */ color: oklch(65.2% 0.195 293.5);
Tailwind
colors: {
  custom: {
    50: '#bb9bfc',
    500: '#9871f9',
    950: '#000000',
  },
}
SCSS
$custom: #9871f9;
$custom-light: #bb9bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#9871f9",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 257.206,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.65152,
    "c": 0.19492,
    "h": 293.5
  },
  "luminance": 0.25325
}

Semantic roles & 50–950 ramp

primary
#9871F9
secondary
#EBF5D1
accent
#E600A4
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120E18
muted
#817E86

Preview Lab

Preview with #9871F9

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

Preview Lab → · Contrast checker → · Palette generator →

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