#9D87F7#9D87F7

#9D87F7 is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.2% C 0.161 H 290.6°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#9D87F7
RGBrgb(157, 135, 247)
HSLhsl(252, 88%, 75%)
HSVhsv(252, 45%, 97%)
CMYKcmyk(36.4%, 45.3%, 0%, 3.1%)
CIE-LABlab(62.68, 33.50, -53.36)
CIE-LCHlch(62.68, 63.01, 302.12°)
OKLaboklab(69.17% 0.0566 -0.1505)
OKLCHoklch(69.17% 0.161 290.6)
XYZxyz(39.3526, 31.2104, 91.9285)
Luminance0.3121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87F7 #E1F787
analogous
#87A9F7 #9D87F7 #D587F7
triadic
#9D87F7 #F79D87 #87F79D
tetradic
#9D87F7 #F787A9 #E1F787 #87F7D5
square
#9D87F7 #F787A9 #E1F787 #87F7D5
split-complementary
#9D87F7 #F7D587 #A9F787
monochromatic
#3F14EF #6E4EF3 #9D87F7 #CCC0FB #E8E2FD

Accessibility & contrast

On white

2.90
#9D87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.24
#9D87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87F7
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87F7#FFFFFF#000000##000000
##9D87F71.002.907.247.24
#FFFFFF2.901.0021.0021.00
#0000007.2421.001.001.00
##0000007.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFB
Deuteranopia (green-blind)
#6195F4
Tritanopia (blue-blind)
#869DB3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9d87f7;
/* rgb */ color: rgb(157, 135, 247);
/* oklch */ color: oklch(69.2% 0.161 290.6);
Tailwind
colors: {
  custom: {
    50: '#bdaafa',
    500: '#9d87f7',
    950: '#000000',
  },
}
SCSS
$custom: #9d87f7;
$custom-light: #bdaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87f7",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 251.786,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.69174,
    "c": 0.1608,
    "h": 290.6
  },
  "luminance": 0.31211
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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