#9D87FA#9D87FA

#9D87FA is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.3% C 0.165 H 290.2°. Best body text is #000000 at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#9D87FA
RGBrgb(157, 135, 250)
HSLhsl(251, 92%, 75%)
HSVhsv(251, 46%, 98%)
CMYKcmyk(37.2%, 46%, 0%, 2%)
CIE-LABlab(62.84, 34.30, -54.76)
CIE-LCHlch(62.84, 64.62, 302.06°)
OKLaboklab(69.34% 0.057 -0.1546)
OKLCHoklch(69.34% 0.165 290.2)
XYZxyz(39.8193, 31.3971, 94.3862)
Luminance0.3140 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87FA #E4FA87
analogous
#87AAFA #9D87FA #D687FA
triadic
#9D87FA #FA9D87 #87FA9D
tetradic
#9D87FA #FA87AA #E4FA87 #87FAD6
square
#9D87FA #FA87AA #E4FA87 #87FAD6
split-complementary
#9D87FA #FAD687 #AAFA87
monochromatic
#3D11F5 #6D4CF8 #9D87FA #CDC2FC #E7E2FE

Accessibility & contrast

On white

2.88
#9D87FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.28
#9D87FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87FA
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87FA#FFFFFF#000000##000000
##9D87FA1.002.887.287.28
#FFFFFF2.881.0021.0021.00
#0000007.2821.001.001.00
##0000007.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9AFE
Deuteranopia (green-blind)
#5F95F7
Tritanopia (blue-blind)
#859EB5
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #9d87fa;
/* rgb */ color: rgb(157, 135, 250);
/* oklch */ color: oklch(69.3% 0.165 290.2);
Tailwind
colors: {
  custom: {
    50: '#beaafc',
    500: '#9d87fa',
    950: '#000000',
  },
}
SCSS
$custom: #9d87fa;
$custom-light: #beaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87fa",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 251.478,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.69343,
    "c": 0.16477,
    "h": 290.2
  },
  "luminance": 0.31398
}

Semantic roles & 50–950 ramp

primary
#9D87FA
secondary
#F0F6D5
accent
#E600BA
background
#FCFAFF
surface
#F8F4FF
border
#D1CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9D87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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