#9787EB#9787EB

#9787EB is a light, vivid blue. Relative luminance 0.299; OKLCH L 68.0% C 0.145 H 289.3°. Best body text is #000000 at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#9787EB
RGBrgb(151, 135, 235)
HSLhsl(250, 71%, 73%)
HSVhsv(250, 43%, 92%)
CMYKcmyk(35.7%, 42.6%, 0%, 7.8%)
CIE-LABlab(61.57, 28.80, -48.54)
CIE-LCHlch(61.57, 56.44, 300.68°)
OKLaboklab(68.01% 0.0479 -0.1366)
OKLCHoklch(68.01% 0.145 289.3)
XYZxyz(36.4178, 29.9044, 82.4345)
Luminance0.2990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787EB #DBEB87
analogous
#87A9EB #9787EB #C987EB
triadic
#9787EB #EB9787 #87EB97
tetradic
#9787EB #EB87A9 #DBEB87 #87EBC9
square
#9787EB #EB87A9 #DBEB87 #87EBC9
split-complementary
#9787EB #EBC987 #A9EB87
monochromatic
#4023D4 #6A53E2 #9787EB #C4BBF4 #E8E5FB

Accessibility & contrast

On white

3.01
#9787EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.98
#9787EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787EB
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787EB#FFFFFF#000000##000000
##9787EB1.003.016.986.98
#FFFFFF3.011.0021.0021.00
#0000006.9821.001.001.00
##0000006.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6697EF
Deuteranopia (green-blind)
#6692E9
Tritanopia (blue-blind)
#829AAE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9787eb;
/* rgb */ color: rgb(151, 135, 235);
/* oklch */ color: oklch(68.0% 0.145 289.3);
Tailwind
colors: {
  custom: {
    50: '#b9aaf2',
    500: '#9787eb',
    950: '#000000',
  },
}
SCSS
$custom: #9787eb;
$custom-light: #b9aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9787eb",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 249.6,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.68012,
    "c": 0.14471,
    "h": 289.3
  },
  "luminance": 0.29905
}

Semantic roles & 50–950 ramp

primary
#9787EB
secondary
#EEF2D9
accent
#D312B5
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9787EB

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

Preview Lab → · Contrast checker → · Palette generator →

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