#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 |
|---|---|
| RGB | rgb(151, 136, 247) |
| HSL | hsl(248, 87%, 75%) |
| HSV | hsv(248, 45%, 97%) |
| CMYK | cmyk(38.9%, 44.9%, 0%, 3.1%) |
| CIE-LAB | lab(62.42, 31.43, -53.81) |
| CIE-LCH | lch(62.42, 62.32, 300.29°) |
| OKLab | oklab(68.86% 0.0483 -0.152) |
| OKLCH | oklch(68.86% 0.159 287.6) |
| XYZ | xyz(38.3505, 30.9018, 91.9217) |
| Luminance | 0.3090 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Lavender Blue
#8B88F8
ΔE00 2.49
Periwinkle (survey)
#8E82FE
ΔE00 2.54
Perrywinkle
#8F8CE7
ΔE00 3.24
Periwinkle Blue
#8F99FB
ΔE00 6.02
Mediumpurple
#9370DB
ΔE00 8.00
Cornflower
#6A79F7
ΔE00 8.41
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 |
|---|---|---|---|---|
| ##9788F7 | 1.00 | 2.92 | 7.18 | 7.18 |
| #FFFFFF | 2.92 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.18 | 21.00 | 1.00 | 1.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