#9C87F6#9C87F6

#9C87F6 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.0% C 0.159 H 290.3°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9C87F6
RGBrgb(156, 135, 246)
HSLhsl(251, 86%, 75%)
HSVhsv(251, 45%, 96%)
CMYKcmyk(36.6%, 45.1%, 0%, 3.5%)
CIE-LABlab(62.55, 32.99, -53.04)
CIE-LCHlch(62.55, 62.46, 301.88°)
OKLaboklab(69.04% 0.0553 -0.1496)
OKLCHoklch(69.04% 0.159 290.3)
XYZxyz(39.0044, 31.0486, 91.1089)
Luminance0.3105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C87F6 #E1F687
analogous
#87AAF6 #9C87F6 #D387F6
triadic
#9C87F6 #F69C87 #87F69C
tetradic
#9C87F6 #F687AA #E1F687 #87F6D3
square
#9C87F6 #F687AA #E1F687 #87F6D3
split-complementary
#9C87F6 #F6D387 #AAF687
monochromatic
#3E15ED #6D4EF2 #9C87F6 #CBC0FA #E8E3FD

Accessibility & contrast

On white

2.91
#9C87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#9C87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9C87F6
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C87F6#FFFFFF#000000##000000
##9C87F61.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6099FA
Deuteranopia (green-blind)
#6195F3
Tritanopia (blue-blind)
#859DB3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9c87f6;
/* rgb */ color: rgb(156, 135, 246);
/* oklch */ color: oklch(69.0% 0.159 290.3);
Tailwind
colors: {
  custom: {
    50: '#bdaafa',
    500: '#9c87f6',
    950: '#000000',
  },
}
SCSS
$custom: #9c87f6;
$custom-light: #bdaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#9c87f6",
  "rgb": {
    "r": 156,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 251.351,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.69035,
    "c": 0.15947,
    "h": 290.3
  },
  "luminance": 0.3105
}

Semantic roles & 50–950 ramp

primary
#9C87F6
secondary
#EFF5D6
accent
#E303B8
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9C87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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