#9B87F4#9B87F4

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

Color values

HEX#9B87F4
RGBrgb(155, 135, 244)
HSLhsl(251, 83%, 74%)
HSVhsv(251, 45%, 96%)
CMYKcmyk(36.5%, 44.7%, 0%, 4.3%)
CIE-LABlab(62.36, 32.21, -52.24)
CIE-LCHlch(62.36, 61.37, 301.66°)
OKLaboklab(68.84% 0.0539 -0.1473)
OKLCHoklch(68.84% 0.157 290.1)
XYZxyz(38.5063, 30.8271, 89.4918)
Luminance0.3083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9B87F4 #E0F487
analogous
#87AAF4 #9B87F4 #D287F4
triadic
#9B87F4 #F49B87 #87F49B
tetradic
#9B87F4 #F487AA #E0F487 #87F4D2
square
#9B87F4 #F487AA #E0F487 #87F4D2
split-complementary
#9B87F4 #F4D287 #AAF487
monochromatic
#3E17EA #6C4FEF #9B87F4 #CABFF9 #E8E3FC

Accessibility & contrast

On white

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

On black

7.17
#9B87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9B87F4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9B87F4#FFFFFF#000000##000000
##9B87F41.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6199F8
Deuteranopia (green-blind)
#6294F1
Tritanopia (blue-blind)
#849CB2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9b87f4;
/* rgb */ color: rgb(155, 135, 244);
/* oklch */ color: oklch(68.8% 0.157 290.1);
Tailwind
colors: {
  custom: {
    50: '#bcaaf8',
    500: '#9b87f4',
    950: '#000000',
  },
}
SCSS
$custom: #9b87f4;
$custom-light: #bcaaf8;
$custom-dark: #000000;
JSON
{
  "hex": "#9b87f4",
  "rgb": {
    "r": 155,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 251.009,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.68839,
    "c": 0.15681,
    "h": 290.1
  },
  "luminance": 0.30828
}

Semantic roles & 50–950 ramp

primary
#9B87F4
secondary
#EFF4D7
accent
#E006B8
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9B87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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