Skip to content

#562dfe

a balanced, electric blue · cool · closest name: Blue

RGB
86, 45, 254
HSL
252°, 99%, 59%
CMYK
66, 82, 0, 0
Luminance
0.1101

At a glance

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

Hex
#562dfe
Hue
252°
blue
Saturation
99%
electric
Lightness
59%
balanced
Brightness
100%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1101
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.56:1
Closest name
Blue
ΔE2000 6.5
Where it sits
Hue252° of 360°
Saturation99%
Lightness59%
Temperature
Warm ← → Cool77% 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#562dfe
RGBrgb(86, 45, 254)
HSLhsl(252, 99%, 59%)
CMYKcmyk(66%, 82%, 0%, 0%)
LABlab(39.6 70.4 -95.0)
LCHlch(39.6 118.3 306.5)
OKLCHoklch(0.511 0.278 279.1)
Decimal5647870
Display P3color(display-p3 0.337 0.176 0.996)

Copy-ready code

/* CSS */
color: #562dfe;
background-color: #562dfe;
/* Tailwind (arbitrary) */
class="text-[#562dfe] bg-[#562dfe]"
/* SCSS */
$brand: #562dfe;
/* SwiftUI */
Color(red: 0.337, green: 0.176, blue: 0.996)
/* Android */
Color.parseColor("#562dfe")
/* Flutter */
Color(0xFF562DFE)
/* Python / OpenCV (BGR) */
(254, 45, 86)

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

Accessibility — WCAG contrast

Aa
#562dfe on white: 6.56:1
AA ✓ pass · AA-large · AAA
Aa
#562dfe on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065FF
deuteranopia · #0055FA
tritanopia · #007099

Color scale — 50 to 950

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

#F4F1FE
#E8E3FC
#CCC0FB
#A58FFE
#7857FE
#562dfe
#3101F4
#2901CB
#2101A2
#1B0575
#110349
Base = 500Lightest = 50 · #F4F1FEDarkest = 950 · #110349
:root {
  --brand-50: #F4F1FE;
  --brand-100: #E8E3FC;
  --brand-200: #CCC0FB;
  --brand-300: #A58FFE;
  --brand-400: #7857FE;
  --brand-500: #562dfe;
  --brand-600: #3101F4;
  --brand-700: #2901CB;
  --brand-800: #2101A2;
  --brand-900: #1B0575;
  --brand-950: #110349;
  --brand: #562dfe;
  --brand-ink: #ffffff;
}

Colors that work with #562dfe

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F5F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5A4B9B
Captions on the surface
Accent#CCC100
Second voice, not a rival
Dark variant#19017F
Hover, pressed, headers
Light variant#EBE6FF
Selected rows, tints
Dark surface#171424
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 #562dfe

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#D5FE2D
Analogous left#2D6CFE
Analogous right#BF2DFE
Split-complement 1#FEBF2D
Split-complement 2#6CFE2D
Triadic 1#FE562D
Triadic 2#2DFE56
Tetradic#FE2D6C

RGB percentages

Red33.7%
Green17.6%
Blue99.6%

CMYK percentages

Cyan66.1%
Magenta82.3%
Yellow0.0%
Key (black)0.4%

Color previews

#562dfe text on a black background

contrast 3.20:1

Card sample

#562dfe text on a white background

contrast 6.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #562dfe;
Background color
Panel with #562dfe background
background-color: #562dfe;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(86, 45, 254, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(86, 45, 254, 0.45);
Border & gradient
Gradient panel
border: 3px solid #562dfe;
background: linear-gradient(135deg, #562dfe, #E12DFE);

Monochromatic scale

Palettes built from #562dfe

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.

#562dfe 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
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#562dfe, answered

What color is #562dfe?

#562dfe is a balanced electric blue, closest to Blue (ΔE2000 6.5). It sits at 252° on the hue wheel with 99% saturation and 59% lightness, which reads as cool.

What is the RGB value of #562dfe?

rgb(86, 45, 254) — 86 red, 45 green and 254 blue out of 255, or 33.7% / 17.6% / 99.6% by channel.

Is #562dfe a light or a dark color?

It is a dark color. Relative luminance is 0.1101 and perceived brightness is 41%, so white text on it reaches 6.56:1.

Should I use black or white text on #562dfe?

White. It scores 6.56:1 against #562dfe, versus 3.20:1 for black — AA at any size.

What is the complementary color of #562dfe?

#D5FE2D sits directly opposite on the wheel. Softer options are the split-complements #FEBF2D and #6CFE2D, which give the same contrast with far less vibration.

What colors go well with #562dfe?

For interface work: #F5F4FA as the surface, #C9C0ED for borders, #5A4B9B for secondary text, #CCC100 as an accent and #19017F for hover and pressed states. For a palette, the analogous pair #2D6CFE and #BF2DFE stays calm, while #D5FE2D is the loudest partner.

What is #562dfe in CMYK for printing?

cmyk(66%, 82%, 0%, 0%). 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 #562dfe warm or cool?

Cool — it scores 77 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A32DFE; nudged cooler, #2C49FF.

Work with #562dfe in the Color Lab