Skip to content

#7e8fdf

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

RGB
126, 143, 223
HSL
230°, 60%, 68%
CMYK
44, 36, 0, 13
Luminance
0.2941

At a glance

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

Hex
#7e8fdf
Hue
230°
blue
Saturation
60%
vivid
Lightness
68%
light
Brightness
87%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2941
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.88:1
Closest name
Cornflower Blue
ΔE2000 6.5
Where it sits
Hue230° of 360°
Saturation60%
Lightness68%
Temperature
Warm ← → Cool89% 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#7e8fdf
RGBrgb(126, 143, 223)
HSLhsl(230, 60%, 68%)
CMYKcmyk(44%, 36%, 0%, 13%)
LABlab(61.1 14.4 -42.7)
LCHlch(61.1 45.0 288.6)
OKLCHoklch(0.670 0.120 273.6)
Decimal8294367
Display P3color(display-p3 0.494 0.561 0.875)

Copy-ready code

/* CSS */
color: #7e8fdf;
background-color: #7e8fdf;
/* Tailwind (arbitrary) */
class="text-[#7e8fdf] bg-[#7e8fdf]"
/* SCSS */
$brand: #7e8fdf;
/* SwiftUI */
Color(red: 0.494, green: 0.561, blue: 0.875)
/* Android */
Color.parseColor("#7e8fdf")
/* Flutter */
Color(0xFF7E8FDF)
/* Python / OpenCV (BGR) */
(223, 143, 126)

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

Accessibility — WCAG contrast

Aa
#7e8fdf on white: 3.05:1
AA ✗ fail · AA-large · AAA
Aa
#7e8fdf on black: 6.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7298E2
deuteranopia · #6A90DD
tritanopia · #5D9FAC

Color scale — 50 to 950

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

#F4F5FB
#E9EBF7
#CCD2EF
#A5B1E9
#7e8fdf
#4B63D2
#314BC4
#293EA3
#203283
#1B275F
#11183B
Base = 400Lightest = 50 · #F4F5FBDarkest = 950 · #11183B
:root {
  --brand-50: #F4F5FB;
  --brand-100: #E9EBF7;
  --brand-200: #CCD2EF;
  --brand-300: #A5B1E9;
  --brand-400: #7e8fdf;
  --brand-500: #4B63D2;
  --brand-600: #314BC4;
  --brand-700: #293EA3;
  --brand-800: #203283;
  --brand-900: #1B275F;
  --brand-950: #11183B;
  --brand: #7e8fdf;
  --brand-ink: #000000;
}

Colors that work with #7e8fdf

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#C0C8ED
Hairlines and dividers
Muted text#4B599B
Captions on the surface
Accent#A77025
Second voice, not a rival
Dark variant#192766
Hover, pressed, headers
Light variant#EBEDFA
Selected rows, tints
Dark surface#141724
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 #7e8fdf

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#DFCE7E
Analogous left#7EBFDF
Analogous right#9D7EDF
Split-complement 1#DF9D7E
Split-complement 2#BFDF7E
Triadic 1#DF7E8F
Triadic 2#8FDF7E
Tetradic#DF7EBF

RGB percentages

Red49.4%
Green56.1%
Blue87.5%

CMYK percentages

Cyan43.5%
Magenta35.9%
Yellow0.0%
Key (black)12.5%

Color previews

#7e8fdf text on a black background

contrast 6.88:1

Card sample

#7e8fdf text on a white background

contrast 3.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(126, 143, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(126, 143, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7e8fdf;
background: linear-gradient(135deg, #7e8fdf, #AE7EDF);

Monochromatic scale

Palettes built from #7e8fdf

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.

#7e8fdf 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

Converts to four-color process without much drama. Proof it anyway.

#7e8fdf, answered

What color is #7e8fdf?

#7e8fdf is a light vivid blue, closest to Cornflower Blue (ΔE2000 6.5). It sits at 230° on the hue wheel with 60% saturation and 68% lightness, which reads as cool.

What is the RGB value of #7e8fdf?

rgb(126, 143, 223) — 126 red, 143 green and 223 blue out of 255, or 49.4% / 56.1% / 87.5% by channel.

Is #7e8fdf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2941 and perceived brightness is 59%, so black text on it reaches 6.88:1.

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

Black. It scores 6.88:1 against #7e8fdf, versus 3.05:1 for white — AA at any size.

What is the complementary color of #7e8fdf?

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

What colors go well with #7e8fdf?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B599B for secondary text, #A77025 as an accent and #192766 for hover and pressed states. For a palette, the analogous pair #7EBFDF and #9D7EDF stays calm, while #DFCE7E is the loudest partner.

What is #7e8fdf in CMYK for printing?

cmyk(44%, 36%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #7e8fdf warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #917EDF; nudged cooler, #7CA2E1.

Work with #7e8fdf in the Color Lab