Skip to content

#7f7fec

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

RGB
127, 127, 236
HSL
240°, 74%, 71%
CMYK
46, 46, 0, 8
Luminance
0.2575

Every format

HEX#7f7fec
RGBrgb(127, 127, 236)
HSLhsl(240, 74%, 71%)
CMYKcmyk(46%, 46%, 0%, 8%)
LABlab(57.8 27.9 -55.2)
LCHlch(57.8 61.8 296.8)
OKLCHoklch(0.647 0.160 281.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7f7fec on white: 3.41:1
AA ✗ fail · AA-large · AAA
Aa
#7f7fec on black: 6.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red49.8%
Green49.8%
Blue92.5%

CMYK percentages

Cyan46.2%
Magenta46.2%
Yellow0.0%
Key (black)7.5%

Color previews

#7f7fec text on a black background

contrast 6.15:1

Card sample

#7f7fec text on a white background

contrast 3.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #7f7fec;
Background color
Panel with #7f7fec background
background-color: #7f7fec;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #7f7fec;
Text shadow — RGB

Soft neon halo

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

Monochromatic scale

Palettes built from #7f7fec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7f7fec in the Color Lab