#9B87F8#9B87F8

#9B87F8 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.1% C 0.162 H 289.6°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9B87F8
RGBrgb(155, 135, 248)
HSLhsl(251, 89%, 75%)
HSVhsv(251, 46%, 97%)
CMYKcmyk(37.5%, 45.6%, 0%, 2.7%)
CIE-LABlab(62.57, 33.27, -54.11)
CIE-LCHlch(62.57, 63.52, 301.58°)
OKLaboklab(69.06% 0.0544 -0.1527)
OKLCHoklch(69.06% 0.162 289.6)
XYZxyz(39.1202, 31.0727, 92.7252)
Luminance0.3107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B87F8 #E4F887
analogous
#87ACF8 #9B87F8 #D387F8
triadic
#9B87F8 #F89B87 #87F89B
tetradic
#9B87F8 #F887AC #E4F887 #87F8D3
square
#9B87F8 #F887AC #E4F887 #87F8D3
split-complementary
#9B87F8 #F8D387 #ACF887
monochromatic
#3B13F1 #6B4DF5 #9B87F8 #CBC1FB #E7E2FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9B87F8#FFFFFF#000000##000000
##9B87F81.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)
#5E9AFC
Deuteranopia (green-blind)
#5F95F5
Tritanopia (blue-blind)
#839DB4
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9b87f8;
/* rgb */ color: rgb(155, 135, 248);
/* oklch */ color: oklch(69.1% 0.162 289.6);
Tailwind
colors: {
  custom: {
    50: '#bcaafb',
    500: '#9b87f8',
    950: '#000000',
  },
}
SCSS
$custom: #9b87f8;
$custom-light: #bcaafb;
$custom-dark: #000000;
JSON
{
  "hex": "#9b87f8",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 250.619,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.69063,
    "c": 0.16214,
    "h": 289.6
  },
  "luminance": 0.31074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9B87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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