#9D87F0#9D87F0

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

Color values

HEX#9D87F0
RGBrgb(157, 135, 240)
HSLhsl(253, 78%, 74%)
HSVhsv(253, 44%, 94%)
CMYKcmyk(34.6%, 43.8%, 0%, 5.9%)
CIE-LABlab(62.33, 31.67, -50.08)
CIE-LCHlch(62.33, 59.25, 302.31°)
OKLaboklab(68.79% 0.0556 -0.1409)
OKLCHoklch(68.79% 0.151 291.5)
XYZxyz(38.2927, 30.7864, 86.3460)
Luminance0.3079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87F0 #DAF087
analogous
#87A5F0 #9D87F0 #D187F0
triadic
#9D87F0 #F09D87 #87F09D
tetradic
#9D87F0 #F087A5 #DAF087 #87F0D1
square
#9D87F0 #F087A5 #DAF087 #87F0D1
split-complementary
#9D87F0 #F0D187 #A5F087
monochromatic
#451CE1 #7151E9 #9D87F0 #C9BDF7 #E9E4FC

Accessibility & contrast

On white

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

On black

7.16
#9D87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87F0
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87F0#FFFFFF#000000##000000
##9D87F01.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6498F4
Deuteranopia (green-blind)
#6695ED
Tritanopia (blue-blind)
#899BB0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9d87f0;
/* rgb */ color: rgb(157, 135, 240);
/* oklch */ color: oklch(68.8% 0.151 291.5);
Tailwind
colors: {
  custom: {
    50: '#bdaaf5',
    500: '#9d87f0',
    950: '#000000',
  },
}
SCSS
$custom: #9d87f0;
$custom-light: #bdaaf5;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87f0",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 252.571,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.68788,
    "c": 0.15149,
    "h": 291.5
  },
  "luminance": 0.30787
}

Semantic roles & 50–950 ramp

primary
#9D87F0
secondary
#EEF3D8
accent
#DA0BAF
background
#FBFAFF
surface
#F7F4FE
border
#D0CED6
text
#121017
muted
#817F85

Preview Lab

Preview with #9D87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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