#9987F5#9987F5

#9987F5 is a light, vivid blue. Relative luminance 0.307; OKLCH L 68.7% C 0.158 H 289.1°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#9987F5
RGBrgb(153, 135, 245)
HSLhsl(250, 85%, 75%)
HSVhsv(250, 45%, 96%)
CMYKcmyk(37.6%, 44.9%, 0%, 3.9%)
CIE-LABlab(62.25, 31.97, -52.98)
CIE-LCHlch(62.25, 61.88, 301.11°)
OKLaboklab(68.73% 0.0517 -0.1495)
OKLCHoklch(68.73% 0.158 289.1)
XYZxyz(38.2778, 30.6917, 90.2758)
Luminance0.3069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9987F5 #E3F587
analogous
#87ACF5 #9987F5 #D087F5
triadic
#9987F5 #F59987 #87F599
tetradic
#9987F5 #F587AC #E3F587 #87F5D0
square
#9987F5 #F587AC #E3F587 #87F5D0
split-complementary
#9987F5 #F5D087 #ACF587
monochromatic
#3916EC #694FF0 #9987F5 #C9BFFA #E7E3FD

Accessibility & contrast

On white

2.94
#9987F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#9987F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9987F5
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9987F5#FFFFFF#000000##000000
##9987F51.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6099F9
Deuteranopia (green-blind)
#6094F2
Tritanopia (blue-blind)
#819DB2
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #9987f5;
/* rgb */ color: rgb(153, 135, 245);
/* oklch */ color: oklch(68.7% 0.158 289.1);
Tailwind
colors: {
  custom: {
    50: '#bbaaf9',
    500: '#9987f5',
    950: '#000000',
  },
}
SCSS
$custom: #9987f5;
$custom-light: #bbaaf9;
$custom-dark: #000000;
JSON
{
  "hex": "#9987f5",
  "rgb": {
    "r": 153,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 249.818,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.68729,
    "c": 0.15817,
    "h": 289.1
  },
  "luminance": 0.30693
}

Semantic roles & 50–950 ramp

primary
#9987F5
secondary
#F0F5D6
accent
#E104BD
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9987F5

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

Preview Lab → · Contrast checker → · Palette generator →

#9987F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva