Skip to content

#7f8dec

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

RGB
127, 141, 236
HSL
232°, 74%, 71%
CMYK
46, 40, 0, 8
Luminance
0.2962

At a glance

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

Hex
#7f8dec
Hue
232°
blue
Saturation
74%
vivid
Lightness
71%
light
Brightness
93%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2962
WCAG relative
Temperature
Cool
88/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
6.92:1
Closest name
Cornflower Blue
ΔE2000 6.9
Where it sits
Hue232° of 360°
Saturation74%
Lightness71%
Temperature
Warm ← → Cool88% 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#7f8dec
RGBrgb(127, 141, 236)
HSLhsl(232, 74%, 71%)
CMYKcmyk(46%, 40%, 0%, 8%)
LABlab(61.3 19.6 -49.6)
LCHlch(61.3 53.3 291.6)
OKLCHoklch(0.674 0.141 275.6)
Decimal8359404
Display P3color(display-p3 0.498 0.553 0.925)

Copy-ready code

/* CSS */
color: #7f8dec;
background-color: #7f8dec;
/* Tailwind (arbitrary) */
class="text-[#7f8dec] bg-[#7f8dec]"
/* SCSS */
$brand: #7f8dec;
/* SwiftUI */
Color(red: 0.498, green: 0.553, blue: 0.925)
/* Android */
Color.parseColor("#7f8dec")
/* Flutter */
Color(0xFF7F8DEC)
/* Python / OpenCV (BGR) */
(236, 141, 127)

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 #7f8dec · 6.92: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.92:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #7f8dec as text scores 3.03:1 on white and 6.92:1 on black.

Accessibility — WCAG contrast

Aa
#7f8dec on white: 3.03:1
AA ✗ fail · AA-large · AAA
Aa
#7f8dec on black: 6.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6999F0
deuteranopia · #6090EA
tritanopia · #57A1B1

Color scale — 50 to 950

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

#F3F4FC
#E7E9F9
#C8CEF3
#9DA8F0
#7f8dec
#3C51E2
#2037D5
#1A2EB2
#15258E
#131E67
#0C1340
Base = 400Lightest = 50 · #F3F4FCDarkest = 950 · #0C1340
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E7E9F9;
  --brand-200: #C8CEF3;
  --brand-300: #9DA8F0;
  --brand-400: #7f8dec;
  --brand-500: #3C51E2;
  --brand-600: #2037D5;
  --brand-700: #1A2EB2;
  --brand-800: #15258E;
  --brand-900: #131E67;
  --brand-950: #0C1340;
  --brand: #7f8dec;
  --brand-ink: #000000;
}

Colors that work with #7f8dec

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#C0C6ED
Hairlines and dividers
Muted text#4B559B
Captions on the surface
Accent#B67A16
Second voice, not a rival
Dark variant#111D6F
Hover, pressed, headers
Light variant#E9EBFC
Selected rows, tints
Dark surface#141624
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 #7f8dec

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#ECDE7F
Analogous left#7FC4EC
Analogous right#A87FEC
Split-complement 1#ECA87F
Split-complement 2#C4EC7F
Triadic 1#EC7F8D
Triadic 2#8DEC7F
Tetradic#EC7FC4

RGB percentages

Red49.8%
Green55.3%
Blue92.5%

CMYK percentages

Cyan46.2%
Magenta40.3%
Yellow0.0%
Key (black)7.5%

Color previews

#7f8dec text on a black background

contrast 6.92:1

Card sample

#7f8dec text on a white background

contrast 3.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 141, 236, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 141, 236, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f8dec;
background: linear-gradient(135deg, #7f8dec, #BA7FEC);

Monochromatic scale

Palettes built from #7f8dec

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.

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

#7f8dec, answered

What color is #7f8dec?

#7f8dec is a light vivid blue, closest to Cornflower Blue (ΔE2000 6.9). It sits at 232° on the hue wheel with 74% saturation and 71% lightness, which reads as cool.

What is the RGB value of #7f8dec?

rgb(127, 141, 236) — 127 red, 141 green and 236 blue out of 255, or 49.8% / 55.3% / 92.5% by channel.

Is #7f8dec a light or a dark color?

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

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

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

What is the complementary color of #7f8dec?

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

What colors go well with #7f8dec?

For interface work: #F4F5FA as the surface, #C0C6ED for borders, #4B559B for secondary text, #B67A16 as an accent and #111D6F for hover and pressed states. For a palette, the analogous pair #7FC4EC and #A87FEC stays calm, while #ECDE7F is the loudest partner.

What is #7f8dec in CMYK for printing?

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

Is #7f8dec warm or cool?

Cool — it scores 88 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #997FEC; nudged cooler, #7EA5ED.

Work with #7f8dec in the Color Lab