Skip to content

#7c9afd

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

RGB
124, 154, 253
HSL
226°, 97%, 74%
CMYK
51, 39, 0, 1
Luminance
0.3449

At a glance

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

Hex
#7c9afd
Hue
226°
blue
Saturation
97%
electric
Lightness
74%
light
Brightness
99%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3449
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.90:1
Closest name
Cornflower Blue
ΔE2000 4.6
Where it sits
Hue226° of 360°
Saturation97%
Lightness74%
Temperature
Warm ← → Cool91% 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#7c9afd
RGBrgb(124, 154, 253)
HSLhsl(226, 97%, 74%)
CMYKcmyk(51%, 39%, 0%, 1%)
LABlab(65.3 16.4 -52.6)
LCHlch(65.3 55.1 287.3)
OKLCHoklch(0.707 0.149 269.6)
Decimal8166141
Display P3color(display-p3 0.486 0.604 0.992)

Copy-ready code

/* CSS */
color: #7c9afd;
background-color: #7c9afd;
/* Tailwind (arbitrary) */
class="text-[#7c9afd] bg-[#7c9afd]"
/* SCSS */
$brand: #7c9afd;
/* SwiftUI */
Color(red: 0.486, green: 0.604, blue: 0.992)
/* Android */
Color.parseColor("#7c9afd")
/* Flutter */
Color(0xFF7C9AFD)
/* Python / OpenCV (BGR) */
(253, 154, 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 #7c9afd · 7.90:1
Use #000000AAA at every size.
Aa
White text · 2.66:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.90:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #7c9afd as text scores 2.66:1 on white and 7.90:1 on black.

Accessibility — WCAG contrast

Aa
#7c9afd on white: 2.66:1
AA ✗ fail · AA-large · AAA
Aa
#7c9afd on black: 7.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #72A5FF
deuteranopia · #6499FB
tritanopia · #41AFBF

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #7c9afd 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.

#F1F4FD
#E4E9FC
#C1CEFB
#7c9afd
#597FFC
#2255FC
#043BF1
#0331C9
#0227A1
#072074
#041448
Base = 300Lightest = 50 · #F1F4FDDarkest = 950 · #041448
:root {
  --brand-50: #F1F4FD;
  --brand-100: #E4E9FC;
  --brand-200: #C1CEFB;
  --brand-300: #7c9afd;
  --brand-400: #597FFC;
  --brand-500: #2255FC;
  --brand-600: #043BF1;
  --brand-700: #0331C9;
  --brand-800: #0227A1;
  --brand-900: #072074;
  --brand-950: #041448;
  --brand: #7c9afd;
  --brand-ink: #000000;
}

Colors that work with #7c9afd

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#C0CAED
Hairlines and dividers
Muted text#4B5D9B
Captions on the surface
Accent#CC6A00
Second voice, not a rival
Dark variant#021F7E
Hover, pressed, headers
Light variant#E6ECFF
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 #7c9afd

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#FDDF7C
Analogous left#7CDBFD
Analogous right#9E7CFD
Split-complement 1#FD9E7C
Split-complement 2#DBFD7C
Triadic 1#FD7C9A
Triadic 2#9AFD7C
Tetradic#FD7CDB

RGB percentages

Red48.6%
Green60.4%
Blue99.2%

CMYK percentages

Cyan51.0%
Magenta39.1%
Yellow0.0%
Key (black)0.8%

Color previews

#7c9afd text on a black background

contrast 7.90:1

Card sample

#7c9afd text on a white background

contrast 2.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7c9afd

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.

#7c9afd 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.

#7c9afd, answered

What color is #7c9afd?

#7c9afd is a light electric blue, closest to Cornflower Blue (ΔE2000 4.6). It sits at 226° on the hue wheel with 97% saturation and 74% lightness, which reads as cool.

What is the RGB value of #7c9afd?

rgb(124, 154, 253) — 124 red, 154 green and 253 blue out of 255, or 48.6% / 60.4% / 99.2% by channel.

Is #7c9afd a light or a dark color?

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

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

Black. It scores 7.90:1 against #7c9afd, versus 2.66:1 for white — AAA at any size.

What is the complementary color of #7c9afd?

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

What colors go well with #7c9afd?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5D9B for secondary text, #CC6A00 as an accent and #021F7E for hover and pressed states. For a palette, the analogous pair #7CDBFD and #9E7CFD stays calm, while #FDDF7C is the loudest partner.

What is #7c9afd in CMYK for printing?

cmyk(51%, 39%, 0%, 1%). 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 #7c9afd warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8D7CFD; nudged cooler, #7BACFE.

Work with #7c9afd in the Color Lab