#9987F7#9987F7

#9987F7 is a light, vivid blue. Relative luminance 0.308; OKLCH L 68.8% C 0.161 H 288.8°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9987F7
RGBrgb(153, 135, 247)
HSLhsl(250, 88%, 75%)
HSVhsv(250, 45%, 97%)
CMYKcmyk(38.1%, 45.3%, 0%, 3.1%)
CIE-LABlab(62.35, 32.50, -53.92)
CIE-LCHlch(62.35, 62.96, 301.08°)
OKLaboklab(68.84% 0.0519 -0.1522)
OKLCHoklch(68.84% 0.161 288.8)
XYZxyz(38.5847, 30.8145, 91.8925)
Luminance0.3082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9987F7 #E5F787
analogous
#87ADF7 #9987F7 #D187F7
triadic
#9987F7 #F79987 #87F799
tetradic
#9987F7 #F787AD #E5F787 #87F7D1
square
#9987F7 #F787AD #E5F787 #87F7D1
split-complementary
#9987F7 #F7D187 #ADF787
monochromatic
#3714EF #684EF3 #9987F7 #CAC0FB #E7E2FD

Accessibility & contrast

On white

2.93
#9987F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#9987F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9987F7
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9987F7#FFFFFF#000000##000000
##9987F71.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)
#5E99FB
Deuteranopia (green-blind)
#5F94F4
Tritanopia (blue-blind)
#809DB3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9987f7;
/* rgb */ color: rgb(153, 135, 247);
/* oklch */ color: oklch(68.8% 0.161 288.8);
Tailwind
colors: {
  custom: {
    50: '#bbaafa',
    500: '#9987f7',
    950: '#000000',
  },
}
SCSS
$custom: #9987f7;
$custom-light: #bbaafa;
$custom-dark: #000000;
JSON
{
  "hex": "#9987f7",
  "rgb": {
    "r": 153,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 249.643,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.68841,
    "c": 0.16084,
    "h": 288.8
  },
  "luminance": 0.30816
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9987F7

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

Preview Lab → · Contrast checker → · Palette generator →

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