#9788EC#9788EC

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

Color values

HEX#9788EC
RGBrgb(151, 136, 236)
HSLhsl(249, 72%, 73%)
HSVhsv(249, 42%, 93%)
CMYKcmyk(36%, 42.4%, 0%, 7.5%)
CIE-LABlab(61.86, 28.49, -48.63)
CIE-LCHlch(61.86, 56.36, 300.36°)
OKLaboklab(68.25% 0.0467 -0.1368)
OKLCHoklch(68.25% 0.145 288.9)
XYZxyz(36.7029, 30.2427, 83.2443)
Luminance0.3024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9788EC #DDEC88
analogous
#88ABEC #9788EC #C988EC
triadic
#9788EC #EC9788 #88EC97
tetradic
#9788EC #EC88AB #DDEC88 #88ECC9
square
#9788EC #EC88AB #DDEC88 #88ECC9
split-complementary
#9788EC #ECC988 #ABEC88
monochromatic
#3D22D7 #6953E4 #9788EC #C5BDF4 #E8E5FB

Accessibility & contrast

On white

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

On black

7.05
#9788EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9788EC
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9788EC#FFFFFF#000000##000000
##9788EC1.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6798F0
Deuteranopia (green-blind)
#6793EA
Tritanopia (blue-blind)
#819BAF
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #9788ec;
/* rgb */ color: rgb(151, 136, 236);
/* oklch */ color: oklch(68.2% 0.145 288.9);
Tailwind
colors: {
  custom: {
    50: '#b9aaf2',
    500: '#9788ec',
    950: '#000000',
  },
}
SCSS
$custom: #9788ec;
$custom-light: #b9aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#9788ec",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 236
  },
  "hsl": {
    "h": 249,
    "s": 72.464,
    "l": 72.941
  },
  "oklch": {
    "l": 0.68249,
    "c": 0.1446,
    "h": 288.9
  },
  "luminance": 0.30244
}

Semantic roles & 50–950 ramp

primary
#9788EC
secondary
#EFF2D9
accent
#D511B7
background
#FBFAFE
surface
#F6F4FD
border
#D0CED5
text
#121017
muted
#817F85

Preview Lab

Preview with #9788EC

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

Preview Lab → · Contrast checker → · Palette generator →

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