Skip to content

#7c9df8

a light, electric blue · cool · closest name: Cornflower Blue

RGB
124, 157, 248
HSL
224°, 90%, 73%
CMYK
50, 37, 0, 3
Luminance
0.3518

At a glance

Every number on this page in one read: what #7c9df8 is made of, how bright it looks, and which way it leans.

Hex
#7c9df8
Hue
224°
blue
Saturation
90%
electric
Lightness
73%
light
Brightness
97%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3518
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.04:1
Closest name
Cornflower Blue
ΔE2000 4.3
Where it sits
Hue224° of 360°
Saturation90%
Lightness73%
Temperature
Warm ← → Cool92% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#7c9df8
RGBrgb(124, 157, 248)
HSLhsl(224, 90%, 73%)
CMYKcmyk(50%, 37%, 0%, 3%)
LABlab(65.9 13.1 -49.0)
LCHlch(65.9 50.7 285.0)
OKLCHoklch(0.710 0.139 267.7)
Decimal8166904
Display P3color(display-p3 0.486 0.616 0.973)

Copy-ready code

/* CSS */
color: #7c9df8;
background-color: #7c9df8;
/* Tailwind (arbitrary) */
class="text-[#7c9df8] bg-[#7c9df8]"
/* SCSS */
$brand: #7c9df8;
/* SwiftUI */
Color(red: 0.486, green: 0.616, blue: 0.973)
/* Android */
Color.parseColor("#7c9df8")
/* Flutter */
Color(0xFF7C9DF8)
/* Python / OpenCV (BGR) */
(248, 157, 124)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #7c9df8 · 8.04:1
Use #000000AAA at every size.
Aa
White text · 2.61:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.04:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #7c9df8 as text scores 2.61:1 on white and 8.04:1 on black.

Accessibility — WCAG contrast

Aa
#7c9df8 on white: 2.61:1
AA ✗ fail · AA-large · AAA
Aa
#7c9df8 on black: 8.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7AA6FC
deuteranopia · #6C9BF6
tritanopia · #45B0BF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7c9df8 is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2F5FD
#E5EBFB
#C3D1F8
#7c9df8
#5F88F7
#2A60F4
#0C47E8
#0A3BC2
#082F9B
#0B2670
#071746
Base = 300Lightest = 50 · #F2F5FDDarkest = 950 · #071746
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFB;
  --brand-200: #C3D1F8;
  --brand-300: #7c9df8;
  --brand-400: #5F88F7;
  --brand-500: #2A60F4;
  --brand-600: #0C47E8;
  --brand-700: #0A3BC2;
  --brand-800: #082F9B;
  --brand-900: #0B2670;
  --brand-950: #071746;
  --brand: #7c9df8;
  --brand-ink: #000000;
}

Colors that work with #7c9df8

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F4F6FA
Tinted page background
Border#C0CCED
Hairlines and dividers
Muted text#4B609B
Captions on the surface
Accent#C66306
Second voice, not a rival
Dark variant#062579
Hover, pressed, headers
Light variant#E7EDFE
Selected rows, tints
Dark surface#141824
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #7c9df8

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#F8D77C
Analogous left#7CDBF8
Analogous right#997CF8
Split-complement 1#F8997C
Split-complement 2#DBF87C
Triadic 1#F87C9D
Triadic 2#9DF87C
Tetradic#F87CDB

RGB percentages

Red48.6%
Green61.6%
Blue97.3%

CMYK percentages

Cyan50.0%
Magenta36.7%
Yellow0.0%
Key (black)2.7%

Color previews

#7c9df8 text on a black background

contrast 8.04:1

Card sample

#7c9df8 text on a white background

contrast 2.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7c9df8

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#7c9df8 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#7c9df8, answered

What color is #7c9df8?

#7c9df8 is a light electric blue, closest to Cornflower Blue (ΔE2000 4.3). It sits at 224° on the hue wheel with 90% saturation and 73% lightness, which reads as cool.

What is the RGB value of #7c9df8?

rgb(124, 157, 248) — 124 red, 157 green and 248 blue out of 255, or 48.6% / 61.6% / 97.3% by channel.

Is #7c9df8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3518 and perceived brightness is 63%, so black text on it reaches 8.04:1.

Should I use black or white text on #7c9df8?

Black. It scores 8.04:1 against #7c9df8, versus 2.61:1 for white — AAA at any size.

What is the complementary color of #7c9df8?

#F8D77C sits directly opposite on the wheel. Softer options are the split-complements #F8997C and #DBF87C, which give the same contrast with far less vibration.

What colors go well with #7c9df8?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B609B for secondary text, #C66306 as an accent and #062579 for hover and pressed states. For a palette, the analogous pair #7CDBF8 and #997CF8 stays calm, while #F8D77C is the loudest partner.

What is #7c9df8 in CMYK for printing?

cmyk(50%, 37%, 0%, 3%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #7c9df8 warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #887CF8; nudged cooler, #7AACF9.

Work with #7c9df8 in the Color Lab