Skip to content

#797fdf

a light, vivid blue · warm · closest name: royalblue

RGB
121, 127, 223
HSL
237°, 61%, 68%
CMYK
46, 43, 0, 13
Luminance
0.2457

Every format

HEX#797fdf
RGBrgb(121, 127, 223)
HSLhsl(237, 61%, 68%)
CMYKcmyk(46%, 43%, 0%, 13%)
LABlab(56.6 22.6 -49.8)
LCHlch(56.6 54.7 294.4)
OKLCHoklch(0.635 0.143 278.8)

Copy-ready code

/* CSS */
color: #797fdf;
background-color: #797fdf;
/* Tailwind (arbitrary) */
class="text-[#797fdf] bg-[#797fdf]"
/* SCSS */
$brand: #797fdf;
/* SwiftUI */
Color(red: 0.475, green: 0.498, blue: 0.875)
/* Android */
Color.parseColor("#797fdf")

Accessibility — WCAG contrast

Aa
#797fdf on white: 3.55:1
AA ✗ fail · AA-large · AAA
Aa
#797fdf on black: 5.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green49.8%
Blue87.5%

CMYK percentages

Cyan45.7%
Magenta43.0%
Yellow0.0%
Key (black)12.5%

Color previews

#797fdf text on a black background

contrast 5.91:1

Card sample

#797fdf text on a white background

contrast 3.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #797fdf;
Background color
Panel with #797fdf background
background-color: #797fdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #797fdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(121, 127, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(121, 127, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #797fdf;
background: linear-gradient(135deg, #797fdf, #B779DF);

Monochromatic scale

Palettes built from #797fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #797fdf in the Color Lab