#9787EA#9787EA

#9787EA is a light, vivid blue. Relative luminance 0.298; OKLCH L 68.0% C 0.143 H 289.4°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#9787EA
RGBrgb(151, 135, 234)
HSLhsl(250, 70%, 72%)
HSVhsv(250, 42%, 92%)
CMYKcmyk(35.5%, 42.3%, 0%, 8.2%)
CIE-LABlab(61.52, 28.53, -48.06)
CIE-LCHlch(61.52, 55.89, 300.69°)
OKLaboklab(67.96% 0.0477 -0.1352)
OKLCHoklch(67.96% 0.143 289.4)
XYZxyz(36.2738, 29.8468, 81.6758)
Luminance0.2985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9787EA #DAEA87
analogous
#87A9EA #9787EA #C987EA
triadic
#9787EA #EA9787 #87EA97
tetradic
#9787EA #EA87A9 #DAEA87 #87EAC9
square
#9787EA #EA87A9 #DAEA87 #87EAC9
split-complementary
#9787EA #EAC987 #A9EA87
monochromatic
#4125D2 #6A53E1 #9787EA #C4BBF3 #E8E5FA

Accessibility & contrast

On white

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

On black

6.97
#9787EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9787EA
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9787EA#FFFFFF#000000##000000
##9787EA1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6697EE
Deuteranopia (green-blind)
#6792E8
Tritanopia (blue-blind)
#829AAD
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9787ea;
/* rgb */ color: rgb(151, 135, 234);
/* oklch */ color: oklch(68.0% 0.143 289.4);
Tailwind
colors: {
  custom: {
    50: '#b9aaf1',
    500: '#9787ea',
    950: '#000000',
  },
}
SCSS
$custom: #9787ea;
$custom-light: #b9aaf1;
$custom-dark: #000000;
JSON
{
  "hex": "#9787ea",
  "rgb": {
    "r": 151,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 249.697,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.67958,
    "c": 0.14336,
    "h": 289.4
  },
  "luminance": 0.29848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9787EA

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

Preview Lab → · Contrast checker → · Palette generator →

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