#9788F7#9788F7

#9788F7 is a light, vivid blue. Relative luminance 0.309; OKLCH L 68.9% C 0.159 H 287.6°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#9788F7
RGBrgb(151, 136, 247)
HSLhsl(248, 87%, 75%)
HSVhsv(248, 45%, 97%)
CMYKcmyk(38.9%, 44.9%, 0%, 3.1%)
CIE-LABlab(62.42, 31.43, -53.81)
CIE-LCHlch(62.42, 62.32, 300.29°)
OKLaboklab(68.86% 0.0483 -0.152)
OKLCHoklch(68.86% 0.159 287.6)
XYZxyz(38.3505, 30.9018, 91.9217)
Luminance0.3090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9788F7 #E8F788
analogous
#88B1F7 #9788F7 #CE88F7
triadic
#9788F7 #F79788 #88F797
tetradic
#9788F7 #F788B1 #E8F788 #88F7CE
square
#9788F7 #F788B1 #E8F788 #88F7CE
split-complementary
#9788F7 #F7CE88 #B1F788
monochromatic
#3315EF #654FF3 #9788F7 #C9C1FB #E6E2FD

Accessibility & contrast

On white

2.92
#9788F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#9788F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9788F7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9788F7#FFFFFF#000000##000000
##9788F71.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFB
Deuteranopia (green-blind)
#5F94F4
Tritanopia (blue-blind)
#7D9EB4
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9788f7;
/* rgb */ color: rgb(151, 136, 247);
/* oklch */ color: oklch(68.9% 0.159 287.6);
Tailwind
colors: {
  custom: {
    50: '#b9abfa',
    500: '#9788f7',
    950: '#000000',
  },
}
SCSS
$custom: #9788f7;
$custom-light: #b9abfa;
$custom-dark: #000000;
JSON
{
  "hex": "#9788f7",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 247
  },
  "hsl": {
    "h": 248.108,
    "s": 87.402,
    "l": 75.098
  },
  "oklch": {
    "l": 0.68857,
    "c": 0.15947,
    "h": 287.6
  },
  "luminance": 0.30903
}

Semantic roles & 50–950 ramp

primary
#9788F7
secondary
#F1F5D6
accent
#E402C5
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9788F7

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

Preview Lab → · Contrast checker → · Palette generator →

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