#9D87F4#9D87F4

#9D87F4 is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.0% C 0.157 H 291.0°. Best body text is #000000 at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#9D87F4
RGBrgb(157, 135, 244)
HSLhsl(252, 83%, 74%)
HSVhsv(252, 45%, 96%)
CMYKcmyk(35.7%, 44.7%, 0%, 4.3%)
CIE-LABlab(62.53, 32.71, -51.96)
CIE-LCHlch(62.53, 61.40, 302.20°)
OKLaboklab(69.01% 0.0562 -0.1464)
OKLCHoklch(69.01% 0.157 291)
XYZxyz(38.8934, 31.0267, 89.5100)
Luminance0.3103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87F4 #DEF487
analogous
#87A8F4 #9D87F4 #D487F4
triadic
#9D87F4 #F49D87 #87F49D
tetradic
#9D87F4 #F487A8 #DEF487 #87F4D4
square
#9D87F4 #F487A8 #DEF487 #87F4D4
split-complementary
#9D87F4 #F4D487 #A8F487
monochromatic
#4117EA #6F4FEF #9D87F4 #CBBFF9 #E8E3FC

Accessibility & contrast

On white

2.91
#9D87F4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.21
#9D87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87F4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87F4#FFFFFF#000000##000000
##9D87F41.002.917.217.21
#FFFFFF2.911.0021.0021.00
#0000007.2121.001.001.00
##0000007.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6299F8
Deuteranopia (green-blind)
#6495F1
Tritanopia (blue-blind)
#879CB2
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9d87f4;
/* rgb */ color: rgb(157, 135, 244);
/* oklch */ color: oklch(69.0% 0.157 291.0);
Tailwind
colors: {
  custom: {
    50: '#bdaaf8',
    500: '#9d87f4',
    950: '#000000',
  },
}
SCSS
$custom: #9d87f4;
$custom-light: #bdaaf8;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87f4",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 252.11,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.69008,
    "c": 0.15682,
    "h": 291
  },
  "luminance": 0.31028
}

Semantic roles & 50–950 ramp

primary
#9D87F4
secondary
#EEF4D7
accent
#E006B4
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9D87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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