#9C87F9#9C87F9

#9C87F9 is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.2% C 0.163 H 289.9°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#9C87F9
RGBrgb(156, 135, 249)
HSLhsl(251, 90%, 75%)
HSVhsv(251, 46%, 98%)
CMYKcmyk(37.3%, 45.8%, 0%, 2.4%)
CIE-LABlab(62.70, 33.78, -54.44)
CIE-LCHlch(62.70, 64.07, 301.82°)
OKLaboklab(69.2% 0.0557 -0.1537)
OKLCHoklch(69.2% 0.163 289.9)
XYZxyz(39.4685, 31.2343, 93.5535)
Luminance0.3124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C87F9 #E4F987
analogous
#87ABF9 #9C87F9 #D587F9
triadic
#9C87F9 #F99C87 #87F99C
tetradic
#9C87F9 #F987AB #E4F987 #87F9D5
square
#9C87F9 #F987AB #E4F987 #87F9D5
split-complementary
#9C87F9 #F9D587 #ABF987
monochromatic
#3C12F3 #6C4DF6 #9C87F9 #CCC1FC #E7E2FE

Accessibility & contrast

On white

2.90
#9C87F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.25
#9C87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9C87F9
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C87F9#FFFFFF#000000##000000
##9C87F91.002.907.257.25
#FFFFFF2.901.0021.0021.00
#0000007.2521.001.001.00
##0000007.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9AFD
Deuteranopia (green-blind)
#5F95F6
Tritanopia (blue-blind)
#849DB4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9c87f9;
/* rgb */ color: rgb(156, 135, 249);
/* oklch */ color: oklch(69.2% 0.163 289.9);
Tailwind
colors: {
  custom: {
    50: '#bdaafc',
    500: '#9c87f9',
    950: '#000000',
  },
}
SCSS
$custom: #9c87f9;
$custom-light: #bdaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#9c87f9",
  "rgb": {
    "r": 156,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 251.053,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.69203,
    "c": 0.16345,
    "h": 289.9
  },
  "luminance": 0.31235
}

Semantic roles & 50–950 ramp

primary
#9C87F9
secondary
#F0F6D5
accent
#E600BB
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9C87F9

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

Preview Lab → · Contrast checker → · Palette generator →

#9C87F9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva