#9D87F3#9D87F3

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

Color values

HEX#9D87F3
RGBrgb(157, 135, 243)
HSLhsl(252, 82%, 74%)
HSVhsv(252, 44%, 95%)
CMYKcmyk(35.4%, 44.4%, 0%, 4.7%)
CIE-LABlab(62.48, 32.45, -51.49)
CIE-LCHlch(62.48, 60.86, 302.22°)
OKLaboklab(68.95% 0.0561 -0.145)
OKLCHoklch(68.95% 0.155 291.1)
XYZxyz(38.7420, 30.9662, 88.7125)
Luminance0.3097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87F3 #DDF387
analogous
#87A7F3 #9D87F3 #D387F3
triadic
#9D87F3 #F39D87 #87F39D
tetradic
#9D87F3 #F387A7 #DDF387 #87F3D3
square
#9D87F3 #F387A7 #DDF387 #87F3D3
split-complementary
#9D87F3 #F3D387 #A7F387
monochromatic
#4218E8 #704FED #9D87F3 #CABFF9 #E8E3FC

Accessibility & contrast

On white

2.92
#9D87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.19
#9D87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87F3
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87F3#FFFFFF#000000##000000
##9D87F31.002.927.197.19
#FFFFFF2.921.0021.0021.00
#0000007.1921.001.001.00
##0000007.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6299F7
Deuteranopia (green-blind)
#6495F0
Tritanopia (blue-blind)
#889CB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9d87f3;
/* rgb */ color: rgb(157, 135, 243);
/* oklch */ color: oklch(69.0% 0.155 291.1);
Tailwind
colors: {
  custom: {
    50: '#bdaaf7',
    500: '#9d87f3',
    950: '#000000',
  },
}
SCSS
$custom: #9d87f3;
$custom-light: #bdaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87f3",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 252.222,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.68952,
    "c": 0.15549,
    "h": 291.1
  },
  "luminance": 0.30967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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