#9788EB#9788EB

#9788EB is a light, vivid blue. Relative luminance 0.302; OKLCH L 68.2% C 0.143 H 289.0°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#9788EB
RGBrgb(151, 136, 235)
HSLhsl(249, 71%, 73%)
HSVhsv(249, 42%, 92%)
CMYKcmyk(35.7%, 42.1%, 0%, 7.8%)
CIE-LABlab(61.81, 28.22, -48.16)
CIE-LCHlch(61.81, 55.82, 300.37°)
OKLaboklab(68.19% 0.0466 -0.1355)
OKLCHoklch(68.19% 0.143 289)
XYZxyz(36.5580, 30.1848, 82.4812)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9788EB #DCEB88
analogous
#88AAEB #9788EB #C888EB
triadic
#9788EB #EB9788 #88EB97
tetradic
#9788EB #EB88AA #DCEB88 #88EBC8
square
#9788EB #EB88AA #DCEB88 #88EBC8
split-complementary
#9788EB #EBC888 #AAEB88
monochromatic
#3F24D5 #6954E2 #9788EB #C5BCF4 #E8E5FB

Accessibility & contrast

On white

2.98
#9788EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#9788EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9788EB
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9788EB#FFFFFF#000000##000000
##9788EB1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6797EF
Deuteranopia (green-blind)
#6793E9
Tritanopia (blue-blind)
#819BAE
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9788eb;
/* rgb */ color: rgb(151, 136, 235);
/* oklch */ color: oklch(68.2% 0.143 289.0);
Tailwind
colors: {
  custom: {
    50: '#b9aaf2',
    500: '#9788eb',
    950: '#000000',
  },
}
SCSS
$custom: #9788eb;
$custom-light: #b9aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9788eb",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 235
  },
  "hsl": {
    "h": 249.091,
    "s": 71.223,
    "l": 72.745
  },
  "oklch": {
    "l": 0.68195,
    "c": 0.14324,
    "h": 289
  },
  "luminance": 0.30186
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #9788EB

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

Preview Lab → · Contrast checker → · Palette generator →

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