#9D87F9#9D87F9

#9D87F9 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.3% C 0.163 H 290.3°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#9D87F9
RGBrgb(157, 135, 249)
HSLhsl(252, 90%, 75%)
HSVhsv(252, 46%, 98%)
CMYKcmyk(36.9%, 45.8%, 0%, 2.4%)
CIE-LABlab(62.79, 34.03, -54.30)
CIE-LCHlch(62.79, 64.08, 302.08°)
OKLaboklab(69.29% 0.0568 -0.1532)
OKLCHoklch(69.29% 0.163 290.3)
XYZxyz(39.6629, 31.3345, 93.5626)
Luminance0.3134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87F9 #E3F987
analogous
#87AAF9 #9D87F9 #D687F9
triadic
#9D87F9 #F99D87 #87F99D
tetradic
#9D87F9 #F987AA #E3F987 #87F9D6
square
#9D87F9 #F987AA #E3F987 #87F9D6
split-complementary
#9D87F9 #F9D687 #AAF987
monochromatic
#3E12F3 #6D4DF6 #9D87F9 #CDC1FC #E7E2FE

Accessibility & contrast

On white

2.89
#9D87F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#9D87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87F9
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87F9#FFFFFF#000000##000000
##9D87F91.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9AFD
Deuteranopia (green-blind)
#6095F6
Tritanopia (blue-blind)
#859DB4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9d87f9;
/* rgb */ color: rgb(157, 135, 249);
/* oklch */ color: oklch(69.3% 0.163 290.3);
Tailwind
colors: {
  custom: {
    50: '#beaafc',
    500: '#9d87f9',
    950: '#000000',
  },
}
SCSS
$custom: #9d87f9;
$custom-light: #beaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87f9",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 251.579,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.69287,
    "c": 0.16345,
    "h": 290.3
  },
  "luminance": 0.31336
}

Semantic roles & 50–950 ramp

primary
#9D87F9
secondary
#EFF6D5
accent
#E600B9
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9D87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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