#9D87F2#9D87F2

#9D87F2 is a light, vivid violet. Relative luminance 0.309; OKLCH L 68.9% C 0.154 H 291.3°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9D87F2
RGBrgb(157, 135, 242)
HSLhsl(252, 80%, 74%)
HSVhsv(252, 44%, 95%)
CMYKcmyk(35.1%, 44.2%, 0%, 5.1%)
CIE-LABlab(62.43, 32.19, -51.02)
CIE-LCHlch(62.43, 60.33, 302.25°)
OKLaboklab(68.9% 0.0559 -0.1437)
OKLCHoklch(68.9% 0.154 291.3)
XYZxyz(38.5914, 30.9059, 87.9194)
Luminance0.3091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9D87F2 #DCF287
analogous
#87A7F2 #9D87F2 #D287F2
triadic
#9D87F2 #F29D87 #87F29D
tetradic
#9D87F2 #F287A7 #DCF287 #87F2D2
square
#9D87F2 #F287A7 #DCF287 #87F2D2
split-complementary
#9D87F2 #F2D287 #A7F287
monochromatic
#4319E6 #7050EC #9D87F2 #CABEF8 #E8E3FC

Accessibility & contrast

On white

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

On black

7.18
#9D87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9D87F2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9D87F2#FFFFFF#000000##000000
##9D87F21.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6399F6
Deuteranopia (green-blind)
#6595EF
Tritanopia (blue-blind)
#889CB1
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9d87f2;
/* rgb */ color: rgb(157, 135, 242);
/* oklch */ color: oklch(68.9% 0.154 291.3);
Tailwind
colors: {
  custom: {
    50: '#bdaaf7',
    500: '#9d87f2',
    950: '#000000',
  },
}
SCSS
$custom: #9d87f2;
$custom-light: #bdaaf7;
$custom-dark: #000000;
JSON
{
  "hex": "#9d87f2",
  "rgb": {
    "r": 157,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 252.336,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.68897,
    "c": 0.15417,
    "h": 291.3
  },
  "luminance": 0.30907
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9D87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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