#9787FA#9787FA

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

Color values

HEX#9787FA
RGBrgb(151, 135, 250)
HSLhsl(248, 92%, 75%)
HSVhsv(248, 46%, 98%)
CMYKcmyk(39.6%, 46%, 0%, 2%)
CIE-LABlab(62.35, 32.82, -55.58)
CIE-LCHlch(62.35, 64.55, 300.56°)
OKLaboklab(68.85% 0.05 -0.1572)
OKLCHoklch(68.85% 0.165 287.6)
XYZxyz(38.6770, 30.8081, 94.3327)
Luminance0.3081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787FA #EAFA87
analogous
#87B0FA #9787FA #D087FA
triadic
#9787FA #FA9787 #87FA97
tetradic
#9787FA #FA87B0 #EAFA87 #87FAD0
square
#9787FA #FA87B0 #EAFA87 #87FAD0
split-complementary
#9787FA #FAD087 #B0FA87
monochromatic
#3111F5 #644CF8 #9787FA #CAC2FC #E6E2FE

Accessibility & contrast

On white

2.93
#9787FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#9787FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9787FA
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787FA#FFFFFF#000000##000000
##9787FA1.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)
#5C99FE
Deuteranopia (green-blind)
#5B94F7
Tritanopia (blue-blind)
#7B9EB5
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9787fa;
/* rgb */ color: rgb(151, 135, 250);
/* oklch */ color: oklch(68.8% 0.165 287.6);
Tailwind
colors: {
  custom: {
    50: '#baaafc',
    500: '#9787fa',
    950: '#000000',
  },
}
SCSS
$custom: #9787fa;
$custom-light: #baaafc;
$custom-dark: #000000;
JSON
{
  "hex": "#9787fa",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 248.348,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.68849,
    "c": 0.16491,
    "h": 287.6
  },
  "luminance": 0.30809
}

Semantic roles & 50–950 ramp

primary
#9787FA
secondary
#F1F6D5
accent
#E600C6
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9787FA

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

Preview Lab → · Contrast checker → · Palette generator →

#9787FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva