#9B87F7#9B87F7

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

Color values

HEX#9B87F7
RGBrgb(155, 135, 247)
HSLhsl(251, 88%, 75%)
HSVhsv(251, 45%, 97%)
CMYKcmyk(37.2%, 45.3%, 0%, 3.1%)
CIE-LABlab(62.52, 33.00, -53.64)
CIE-LCHlch(62.52, 62.98, 301.60°)
OKLaboklab(69.01% 0.0543 -0.1514)
OKLCHoklch(69.01% 0.161 289.7)
XYZxyz(38.9655, 31.0108, 91.9103)
Luminance0.3101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B87F7 #E3F787
analogous
#87ABF7 #9B87F7 #D387F7
triadic
#9B87F7 #F79B87 #87F79B
tetradic
#9B87F7 #F787AB #E3F787 #87F7D3
square
#9B87F7 #F787AB #E3F787 #87F7D3
split-complementary
#9B87F7 #F7D387 #ABF787
monochromatic
#3B14EF #6B4EF3 #9B87F7 #CBC0FB #E7E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B87F7#FFFFFF#000000##000000
##9B87F71.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)
#5F99FB
Deuteranopia (green-blind)
#6095F4
Tritanopia (blue-blind)
#839DB3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9b87f7;
/* rgb */ color: rgb(155, 135, 247);
/* oklch */ color: oklch(69.0% 0.161 289.7);
Tailwind
colors: {
  custom: {
    50: '#bcaafa',
    500: '#9b87f7',
    950: '#000000',
  },
}
SCSS
$custom: #9b87f7;
$custom-light: #bcaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#9b87f7",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 250.714,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.69007,
    "c": 0.16081,
    "h": 289.7
  },
  "luminance": 0.31012
}

Semantic roles & 50–950 ramp

primary
#9B87F7
secondary
#F0F5D6
accent
#E401BC
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9B87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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