#9C87F5#9C87F5

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

Color values

HEX#9C87F5
RGBrgb(156, 135, 245)
HSLhsl(251, 85%, 75%)
HSVhsv(251, 45%, 96%)
CMYKcmyk(36.3%, 44.9%, 0%, 3.9%)
CIE-LABlab(62.50, 32.72, -52.57)
CIE-LCHlch(62.50, 61.92, 301.90°)
OKLaboklab(68.98% 0.0552 -0.1482)
OKLCHoklch(68.98% 0.158 290.4)
XYZxyz(38.8513, 30.9874, 90.3027)
Luminance0.3099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C87F5 #E0F587
analogous
#87A9F5 #9C87F5 #D387F5
triadic
#9C87F5 #F59C87 #87F59C
tetradic
#9C87F5 #F587A9 #E0F587 #87F5D3
square
#9C87F5 #F587A9 #E0F587 #87F5D3
split-complementary
#9C87F5 #F5D387 #A9F587
monochromatic
#3F16EC #6D4FF0 #9C87F5 #CBBFFA #E8E3FD

Accessibility & contrast

On white

2.92
#9C87F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#9C87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9C87F5
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C87F5#FFFFFF#000000##000000
##9C87F51.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6199F9
Deuteranopia (green-blind)
#6295F2
Tritanopia (blue-blind)
#859CB2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9c87f5;
/* rgb */ color: rgb(156, 135, 245);
/* oklch */ color: oklch(69.0% 0.158 290.4);
Tailwind
colors: {
  custom: {
    50: '#bdaaf9',
    500: '#9c87f5',
    950: '#000000',
  },
}
SCSS
$custom: #9c87f5;
$custom-light: #bdaaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#9c87f5",
  "rgb": {
    "r": 156,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 251.455,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.68979,
    "c": 0.15815,
    "h": 290.4
  },
  "luminance": 0.30988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9C87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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