Skip to content

#797fec

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

RGB
121, 127, 236
HSL
237°, 75%, 70%
CMYK
49, 46, 0, 8
Luminance
0.2530

Every format

HEX#797fec
RGBrgb(121, 127, 236)
HSLhsl(237, 75%, 70%)
CMYKcmyk(49%, 46%, 0%, 8%)
LABlab(57.4 26.5 -55.9)
LCHlch(57.4 61.9 295.4)
OKLCHoklch(0.643 0.161 278.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#797fec on white: 3.47:1
AA ✗ fail · AA-large · AAA
Aa
#797fec on black: 6.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.5%
Green49.8%
Blue92.5%

CMYK percentages

Cyan48.7%
Magenta46.2%
Yellow0.0%
Key (black)7.5%

Color previews

#797fec text on a black background

contrast 6.06:1

Card sample

#797fec text on a white background

contrast 3.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #797fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #797fec in the Color Lab