Skip to content

#8cacf7

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

RGB
140, 172, 247
HSL
222°, 87%, 76%
CMYK
43, 30, 0, 3
Luminance
0.4180

At a glance

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

Hex
#8cacf7
Hue
222°
blue
Saturation
87%
electric
Lightness
76%
light
Brightness
97%
HSV value
Perceived
68%
weighted brightness
Luminance
0.4180
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
9.36:1
Closest name
Cornflower Blue
ΔE2000 7.7
Where it sits
Hue222° of 360°
Saturation87%
Lightness76%
Temperature
Warm ← → Cool93% 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#8cacf7
RGBrgb(140, 172, 247)
HSLhsl(222, 87%, 76%)
CMYKcmyk(43%, 30%, 0%, 3%)
LABlab(70.7 8.1 -40.8)
LCHlch(70.7 41.6 281.2)
OKLCHoklch(0.750 0.115 266.0)
Decimal9219319
Display P3color(display-p3 0.549 0.675 0.969)

Copy-ready code

/* CSS */
color: #8cacf7;
background-color: #8cacf7;
/* Tailwind (arbitrary) */
class="text-[#8cacf7] bg-[#8cacf7]"
/* SCSS */
$brand: #8cacf7;
/* SwiftUI */
Color(red: 0.549, green: 0.675, blue: 0.969)
/* Android */
Color.parseColor("#8cacf7")
/* Flutter */
Color(0xFF8CACF7)
/* Python / OpenCV (BGR) */
(247, 172, 140)

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 #8cacf7 · 9.36:1
Use #000000AAA at every size.
Aa
White text · 2.24:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.36:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #8cacf7 as text scores 2.24:1 on white and 9.36:1 on black.

Accessibility — WCAG contrast

Aa
#8cacf7 on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#8cacf7 on black: 9.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #91B2FA
deuteranopia · #86A9F5
tritanopia · #65BCC7

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #8cacf7 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
#E5EBFA
#C4D4F7
#8cacf7
#628DF4
#2D67F0
#104FE5
#0D42BF
#0B3599
#0C296E
#081A45
Base = 300Lightest = 50 · #F2F5FDDarkest = 950 · #081A45
:root {
  --brand-50: #F2F5FD;
  --brand-100: #E5EBFA;
  --brand-200: #C4D4F7;
  --brand-300: #8cacf7;
  --brand-400: #628DF4;
  --brand-500: #2D67F0;
  --brand-600: #104FE5;
  --brand-700: #0D42BF;
  --brand-800: #0B3599;
  --brand-900: #0C296E;
  --brand-950: #081A45;
  --brand: #8cacf7;
  --brand-ink: #000000;
}

Colors that work with #8cacf7

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#C0CDED
Hairlines and dividers
Muted text#4B639B
Captions on the surface
Accent#C25D0A
Second voice, not a rival
Dark variant#082977
Hover, pressed, headers
Light variant#E7EEFD
Selected rows, tints
Dark surface#141924
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 #8cacf7

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#F7D78C
Analogous left#8CE1F7
Analogous right#A28CF7
Split-complement 1#F7A28C
Split-complement 2#E1F78C
Triadic 1#F78CAC
Triadic 2#ACF78C
Tetradic#F78CE1

RGB percentages

Red54.9%
Green67.5%
Blue96.9%

CMYK percentages

Cyan43.3%
Magenta30.4%
Yellow0.0%
Key (black)3.1%

Color previews

#8cacf7 text on a black background

contrast 9.36:1

Card sample

#8cacf7 text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #8cacf7;
Background color
Panel with #8cacf7 background
background-color: #8cacf7;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(140, 172, 247, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(140, 172, 247, 0.45);
Border & gradient
Gradient panel
border: 3px solid #8cacf7;
background: linear-gradient(135deg, #8cacf7, #B38CF7);

Monochromatic scale

Palettes built from #8cacf7

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.

#8cacf7 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.

#8cacf7, answered

What color is #8cacf7?

#8cacf7 is a light electric blue, closest to Cornflower Blue (ΔE2000 7.7). It sits at 222° on the hue wheel with 87% saturation and 76% lightness, which reads as cool.

What is the RGB value of #8cacf7?

rgb(140, 172, 247) — 140 red, 172 green and 247 blue out of 255, or 54.9% / 67.5% / 96.9% by channel.

Is #8cacf7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4180 and perceived brightness is 68%, so black text on it reaches 9.36:1.

Should I use black or white text on #8cacf7?

Black. It scores 9.36:1 against #8cacf7, versus 2.24:1 for white — AAA at any size.

What is the complementary color of #8cacf7?

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

What colors go well with #8cacf7?

For interface work: #F4F6FA as the surface, #C0CDED for borders, #4B639B for secondary text, #C25D0A as an accent and #082977 for hover and pressed states. For a palette, the analogous pair #8CE1F7 and #A28CF7 stays calm, while #F7D78C is the loudest partner.

What is #8cacf7 in CMYK for printing?

cmyk(43%, 30%, 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 #8cacf7 warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #938CF7; nudged cooler, #8BB8F8.

Work with #8cacf7 in the Color Lab