#9C87F2#9C87F2

#9C87F2 is a light, vivid violet. Relative luminance 0.308; OKLCH L 68.8% C 0.154 H 290.8°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9C87F2
RGBrgb(156, 135, 242)
HSLhsl(252, 80%, 74%)
HSVhsv(252, 44%, 95%)
CMYKcmyk(35.5%, 44.2%, 0%, 5.1%)
CIE-LABlab(62.34, 31.93, -51.16)
CIE-LCHlch(62.34, 60.31, 301.97°)
OKLaboklab(68.81% 0.0547 -0.1441)
OKLCHoklch(68.81% 0.154 290.8)
XYZxyz(38.3970, 30.8057, 87.9103)
Luminance0.3081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9C87F2 #DDF287
analogous
#87A8F2 #9C87F2 #D287F2
triadic
#9C87F2 #F29C87 #87F29C
tetradic
#9C87F2 #F287A8 #DDF287 #87F2D2
square
#9C87F2 #F287A8 #DDF287 #87F2D2
split-complementary
#9C87F2 #F2D287 #A8F287
monochromatic
#4119E6 #6E50EC #9C87F2 #CABEF8 #E8E3FC

Accessibility & contrast

On white

2.93
#9C87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#9C87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9C87F2
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9C87F2#FFFFFF#000000##000000
##9C87F21.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#6494EF
Tritanopia (blue-blind)
#869CB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9c87f2;
/* rgb */ color: rgb(156, 135, 242);
/* oklch */ color: oklch(68.8% 0.154 290.8);
Tailwind
colors: {
  custom: {
    50: '#bcaaf7',
    500: '#9c87f2',
    950: '#000000',
  },
}
SCSS
$custom: #9c87f2;
$custom-light: #bcaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9c87f2",
  "rgb": {
    "r": 156,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 251.776,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68813,
    "c": 0.15415,
    "h": 290.8
  },
  "luminance": 0.30807
}

Semantic roles & 50–950 ramp

primary
#9C87F2
secondary
#EEF4D7
accent
#DD09B3
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9C87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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