Skip to content

#879dfd

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

RGB
135, 157, 253
HSL
229°, 97%, 76%
CMYK
47, 38, 0, 1
Luminance
0.3636

At a glance

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

Hex
#879dfd
Hue
229°
blue
Saturation
97%
electric
Lightness
76%
light
Brightness
99%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3636
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
8.27:1
Closest name
Cornflower Blue
ΔE2000 6.4
Where it sits
Hue229° of 360°
Saturation97%
Lightness76%
Temperature
Warm ← → Cool90% 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#879dfd
RGBrgb(135, 157, 253)
HSLhsl(229, 97%, 76%)
CMYKcmyk(47%, 38%, 0%, 1%)
LABlab(66.8 17.1 -50.3)
LCHlch(66.8 53.1 288.8)
OKLCHoklch(0.720 0.142 272.6)
Decimal8887805
Display P3color(display-p3 0.529 0.616 0.992)

Copy-ready code

/* CSS */
color: #879dfd;
background-color: #879dfd;
/* Tailwind (arbitrary) */
class="text-[#879dfd] bg-[#879dfd]"
/* SCSS */
$brand: #879dfd;
/* SwiftUI */
Color(red: 0.529, green: 0.616, blue: 0.992)
/* Android */
Color.parseColor("#879dfd")
/* Flutter */
Color(0xFF879DFD)
/* Python / OpenCV (BGR) */
(253, 157, 135)

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

Accessibility — WCAG contrast

Aa
#879dfd on white: 2.54:1
AA ✗ fail · AA-large · AAA
Aa
#879dfd on black: 8.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #79A8FF
deuteranopia · #6E9EFB
tritanopia · #5AB1C1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #879dfd 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
#E4E8FC
#C1CCFB
#879dfd
#5978FC
#224BFB
#0430F1
#0328C9
#0320A1
#071B74
#041148
Base = 300Lightest = 50 · #F1F4FDDarkest = 950 · #041148
:root {
  --brand-50: #F1F4FD;
  --brand-100: #E4E8FC;
  --brand-200: #C1CCFB;
  --brand-300: #879dfd;
  --brand-400: #5978FC;
  --brand-500: #224BFB;
  --brand-600: #0430F1;
  --brand-700: #0328C9;
  --brand-800: #0320A1;
  --brand-900: #071B74;
  --brand-950: #041148;
  --brand: #879dfd;
  --brand-ink: #000000;
}

Colors that work with #879dfd

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#4B5A9B
Captions on the surface
Accent#CC7300
Second voice, not a rival
Dark variant#02197D
Hover, pressed, headers
Light variant#E6EBFF
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 #879dfd

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#FDE787
Analogous left#87D8FD
Analogous right#AC87FD
Split-complement 1#FDAC87
Split-complement 2#D8FD87
Triadic 1#FD879D
Triadic 2#9DFD87
Tetradic#FD87D8

RGB percentages

Red52.9%
Green61.6%
Blue99.2%

CMYK percentages

Cyan46.6%
Magenta37.9%
Yellow0.0%
Key (black)0.8%

Color previews

#879dfd text on a black background

contrast 8.27:1

Card sample

#879dfd text on a white background

contrast 2.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #879dfd;
Background color
Panel with #879dfd background
background-color: #879dfd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(135, 157, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(135, 157, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #879dfd;
background: linear-gradient(135deg, #879dfd, #C087FD);

Monochromatic scale

Palettes built from #879dfd

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.

#879dfd 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.

#879dfd, answered

What color is #879dfd?

#879dfd is a light electric blue, closest to Cornflower Blue (ΔE2000 6.4). It sits at 229° on the hue wheel with 97% saturation and 76% lightness, which reads as cool.

What is the RGB value of #879dfd?

rgb(135, 157, 253) — 135 red, 157 green and 253 blue out of 255, or 52.9% / 61.6% / 99.2% by channel.

Is #879dfd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3636 and perceived brightness is 65%, so black text on it reaches 8.27:1.

Should I use black or white text on #879dfd?

Black. It scores 8.27:1 against #879dfd, versus 2.54:1 for white — AAA at any size.

What is the complementary color of #879dfd?

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

What colors go well with #879dfd?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B5A9B for secondary text, #CC7300 as an accent and #02197D for hover and pressed states. For a palette, the analogous pair #87D8FD and #AC87FD stays calm, while #FDE787 is the loudest partner.

What is #879dfd in CMYK for printing?

cmyk(47%, 38%, 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 #879dfd warm or cool?

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9C87FD; nudged cooler, #86B2FE.

Work with #879dfd in the Color Lab