Skip to content

#7c7dfb

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

RGB
124, 125, 251
HSL
240°, 94%, 74%
CMYK
51, 50, 0, 2
Luminance
0.2592

Every format

HEX#7c7dfb
RGBrgb(124, 125, 251)
HSLhsl(240, 94%, 74%)
CMYKcmyk(51%, 50%, 0%, 2%)
LABlab(58.0 32.8 -63.3)
LCHlch(58.0 71.3 297.4)
OKLCHoklch(0.650 0.183 279.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#7c7dfb on white: 3.40:1
AA ✗ fail · AA-large · AAA
Aa
#7c7dfb on black: 6.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red48.6%
Green49.0%
Blue98.4%

CMYK percentages

Cyan50.6%
Magenta50.2%
Yellow0.0%
Key (black)1.6%

Color previews

#7c7dfb text on a black background

contrast 6.18:1

Card sample

#7c7dfb text on a white background

contrast 3.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(124, 125, 251, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(124, 125, 251, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7c7dfb;
background: linear-gradient(135deg, #7c7dfb, #D07CFB);

Monochromatic scale

Palettes built from #7c7dfb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #7c7dfb in the Color Lab