#9788F5#9788F5

#9788F5 is a light, vivid blue. Relative luminance 0.308; OKLCH L 68.7% C 0.157 H 287.9°. Best body text is #000000 at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#9788F5
RGBrgb(151, 136, 245)
HSLhsl(248, 84%, 75%)
HSVhsv(248, 44%, 96%)
CMYKcmyk(38.4%, 44.5%, 0%, 3.9%)
CIE-LABlab(62.32, 30.89, -52.87)
CIE-LCHlch(62.32, 61.24, 300.30°)
OKLaboklab(68.75% 0.0481 -0.1492)
OKLCHoklch(68.75% 0.157 287.9)
XYZxyz(38.0435, 30.7790, 90.3050)
Luminance0.3078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9788F5 #E6F588
analogous
#88B0F5 #9788F5 #CE88F5
triadic
#9788F5 #F59788 #88F597
tetradic
#9788F5 #F588B0 #E6F588 #88F5CE
square
#9788F5 #F588B0 #E6F588 #88F5CE
split-complementary
#9788F5 #F5CE88 #B0F588
monochromatic
#3417EC #6650F0 #9788F5 #C8C0FA #E6E3FD

Accessibility & contrast

On white

2.93
#9788F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.16
#9788F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9788F5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9788F5#FFFFFF#000000##000000
##9788F51.002.937.167.16
#FFFFFF2.931.0021.0021.00
#0000007.1621.001.001.00
##0000007.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6199F9
Deuteranopia (green-blind)
#6094F2
Tritanopia (blue-blind)
#7D9EB3
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #9788f5;
/* rgb */ color: rgb(151, 136, 245);
/* oklch */ color: oklch(68.7% 0.157 287.9);
Tailwind
colors: {
  custom: {
    50: '#b9abf9',
    500: '#9788f5',
    950: '#000000',
  },
}
SCSS
$custom: #9788f5;
$custom-light: #b9abf9;
$custom-dark: #000000;
JSON
{
  "hex": "#9788f5",
  "rgb": {
    "r": 151,
    "g": 136,
    "b": 245
  },
  "hsl": {
    "h": 248.257,
    "s": 84.496,
    "l": 74.706
  },
  "oklch": {
    "l": 0.68745,
    "c": 0.15678,
    "h": 287.9
  },
  "luminance": 0.3078
}

Semantic roles & 50–950 ramp

primary
#9788F5
secondary
#F0F5D6
accent
#E105C3
background
#FBFAFF
surface
#F6F4FF
border
#D0CED7
text
#121017
muted
#817F85

Preview Lab

Preview with #9788F5

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

Preview Lab → · Contrast checker → · Palette generator →

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