Skip to content

#7d8afd

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

RGB
125, 138, 253
HSL
234°, 97%, 74%
CMYK
51, 46, 0, 1
Luminance
0.2963

At a glance

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

Hex
#7d8afd
Hue
234°
blue
Saturation
97%
electric
Lightness
74%
light
Brightness
99%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2963
WCAG relative
Temperature
Cool
87/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
6.93:1
Closest name
Cornflower Blue
ΔE2000 7.4
Where it sits
Hue234° of 360°
Saturation97%
Lightness74%
Temperature
Warm ← → Cool87% 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#7d8afd
RGBrgb(125, 138, 253)
HSLhsl(234, 97%, 74%)
CMYKcmyk(51%, 46%, 0%, 1%)
LABlab(61.3 26.0 -59.0)
LCHlch(61.3 64.4 293.8)
OKLCHoklch(0.677 0.169 276.1)
Decimal8227581
Display P3color(display-p3 0.490 0.541 0.992)

Copy-ready code

/* CSS */
color: #7d8afd;
background-color: #7d8afd;
/* Tailwind (arbitrary) */
class="text-[#7d8afd] bg-[#7d8afd]"
/* SCSS */
$brand: #7d8afd;
/* SwiftUI */
Color(red: 0.490, green: 0.541, blue: 0.992)
/* Android */
Color.parseColor("#7d8afd")
/* Flutter */
Color(0xFF7D8AFD)
/* Python / OpenCV (BGR) */
(253, 138, 125)

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 #7d8afd · 6.93:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.03:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.93:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #7d8afd as text scores 3.03:1 on white and 6.93:1 on black.

Accessibility — WCAG contrast

Aa
#7d8afd on white: 3.03:1
AA ✗ fail · AA-large · AAA
Aa
#7d8afd on black: 6.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5899FF
deuteranopia · #4B8FFA
tritanopia · #47A3B7

Color scale — 50 to 950

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

#F1F3FD
#E4E6FC
#C1C7FB
#7d8afd
#596AFC
#2238FC
#041CF1
#0317C9
#0213A1
#071274
#040B48
Base = 300Lightest = 50 · #F1F3FDDarkest = 950 · #040B48
:root {
  --brand-50: #F1F3FD;
  --brand-100: #E4E6FC;
  --brand-200: #C1C7FB;
  --brand-300: #7d8afd;
  --brand-400: #596AFC;
  --brand-500: #2238FC;
  --brand-600: #041CF1;
  --brand-700: #0317C9;
  --brand-800: #0213A1;
  --brand-900: #071274;
  --brand-950: #040B48;
  --brand: #7d8afd;
  --brand-ink: #000000;
}

Colors that work with #7d8afd

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#F4F5FA
Tinted page background
Border#C0C4ED
Hairlines and dividers
Muted text#4B539B
Captions on the surface
Accent#CC8500
Second voice, not a rival
Dark variant#020E7E
Hover, pressed, headers
Light variant#E6E8FF
Selected rows, tints
Dark surface#141524
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 #7d8afd

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#FDF07D
Analogous left#7DCAFD
Analogous right#B07DFD
Split-complement 1#FDB07D
Split-complement 2#CAFD7D
Triadic 1#FD7D8A
Triadic 2#8AFD7D
Tetradic#FD7DCA

RGB percentages

Red49.0%
Green54.1%
Blue99.2%

CMYK percentages

Cyan50.6%
Magenta45.5%
Yellow0.0%
Key (black)0.8%

Color previews

#7d8afd text on a black background

contrast 6.93:1

Card sample

#7d8afd text on a white background

contrast 3.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #7d8afd

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.

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

#7d8afd, answered

What color is #7d8afd?

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

What is the RGB value of #7d8afd?

rgb(125, 138, 253) — 125 red, 138 green and 253 blue out of 255, or 49% / 54.1% / 99.2% by channel.

Is #7d8afd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2963 and perceived brightness is 60%, so black text on it reaches 6.93:1.

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

Black. It scores 6.93:1 against #7d8afd, versus 3.03:1 for white — AA at any size.

What is the complementary color of #7d8afd?

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

What colors go well with #7d8afd?

For interface work: #F4F5FA as the surface, #C0C4ED for borders, #4B539B for secondary text, #CC8500 as an accent and #020E7E for hover and pressed states. For a palette, the analogous pair #7DCAFD and #B07DFD stays calm, while #FDF07D is the loudest partner.

What is #7d8afd in CMYK for printing?

cmyk(51%, 46%, 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 #7d8afd warm or cool?

Cool — it scores 87 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9F7DFD; nudged cooler, #7CA6FE.

Work with #7d8afd in the Color Lab