#9871F8#9871F8

#9871F8 is a light, vivid violet. Relative luminance 0.253; OKLCH L 65.1% C 0.194 H 293.6°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#9871F8
RGBrgb(152, 113, 248)
HSLhsl(257, 91%, 71%)
HSVhsv(257, 54%, 97%)
CMYKcmyk(38.7%, 54.4%, 0%, 2.7%)
CIE-LABlab(57.33, 44.99, -62.49)
CIE-LCHlch(57.33, 77.01, 305.75°)
OKLaboklab(65.09% 0.0776 -0.1774)
OKLCHoklch(65.09% 0.194 293.6)
XYZxyz(35.7928, 25.2621, 91.7790)
Luminance0.2526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9871F8 #D1F871
analogous
#718DF8 #9871F8 #DB71F8
triadic
#9871F8 #F89871 #71F898
tetradic
#9871F8 #F8718D #D1F871 #71F8DB
square
#9871F8 #F8718D #D1F871 #71F8DB
split-complementary
#9871F8 #F8DB71 #8DF871
monochromatic
#4A0BE3 #6E37F5 #9871F8 #C2ABFB #EAE2FE

Accessibility & contrast

On white

3.47
#9871F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#9871F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9871F8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9871F8#FFFFFF#000000##000000
##9871F81.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#308BFD
Deuteranopia (green-blind)
#3B87F5
Tritanopia (blue-blind)
#7F8DAA
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9871f8;
/* rgb */ color: rgb(152, 113, 248);
/* oklch */ color: oklch(65.1% 0.194 293.6);
Tailwind
colors: {
  custom: {
    50: '#bb9bfb',
    500: '#9871f8',
    950: '#000000',
  },
}
SCSS
$custom: #9871f8;
$custom-light: #bb9bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#9871f8",
  "rgb": {
    "r": 152,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 257.333,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.65088,
    "c": 0.19369,
    "h": 293.6
  },
  "luminance": 0.25263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9871F8

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

Preview Lab → · Contrast checker → · Palette generator →

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