Skip to content

#5a2dfd

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

RGB
90, 45, 253
HSL
253°, 98%, 58%
CMYK
64, 82, 0, 1
Luminance
0.1114

At a glance

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

Hex
#5a2dfd
Hue
253°
blue
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1114
WCAG relative
Temperature
Cool
76/100 cool
Color family
Blue
Tone
Electric
Best ink
White
6.50:1
Closest name
Blue
ΔE2000 6.8
Where it sits
Hue253° of 360°
Saturation98%
Lightness58%
Temperature
Warm ← → Cool76% 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#5a2dfd
RGBrgb(90, 45, 253)
HSLhsl(253, 98%, 58%)
CMYKcmyk(64%, 82%, 0%, 1%)
LABlab(39.8 70.4 -94.1)
LCHlch(39.8 117.5 306.8)
OKLCHoklch(0.513 0.276 280.4)
Decimal5910013
Display P3color(display-p3 0.353 0.176 0.992)

Copy-ready code

/* CSS */
color: #5a2dfd;
background-color: #5a2dfd;
/* Tailwind (arbitrary) */
class="text-[#5a2dfd] bg-[#5a2dfd]"
/* SCSS */
$brand: #5a2dfd;
/* SwiftUI */
Color(red: 0.353, green: 0.176, blue: 0.992)
/* Android */
Color.parseColor("#5a2dfd")
/* Flutter */
Color(0xFF5A2DFD)
/* Python / OpenCV (BGR) */
(253, 45, 90)

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

Accessibility — WCAG contrast

Aa
#5a2dfd on white: 6.50:1
AA ✓ pass · AA-large · AAA
Aa
#5a2dfd on black: 3.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065FF
deuteranopia · #0056F9
tritanopia · #007099

Color scale — 50 to 950

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

#F4F1FD
#E9E3FC
#CDC1FB
#A890FE
#7C58FD
#5a2dfd
#3602F2
#2D02CA
#2402A2
#1E0674
#130449
Base = 500Lightest = 50 · #F4F1FDDarkest = 950 · #130449
:root {
  --brand-50: #F4F1FD;
  --brand-100: #E9E3FC;
  --brand-200: #CDC1FB;
  --brand-300: #A890FE;
  --brand-400: #7C58FD;
  --brand-500: #5a2dfd;
  --brand-600: #3602F2;
  --brand-700: #2D02CA;
  --brand-800: #2402A2;
  --brand-900: #1E0674;
  --brand-950: #130449;
  --brand: #5a2dfd;
  --brand-ink: #ffffff;
}

Colors that work with #5a2dfd

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#F6F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5C4B9B
Captions on the surface
Accent#CCC500
Second voice, not a rival
Dark variant#1C017E
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 #5a2dfd

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#D0FD2D
Analogous left#2D68FD
Analogous right#C22DFD
Split-complement 1#FDC22D
Split-complement 2#68FD2D
Triadic 1#FD5A2D
Triadic 2#2DFD5A
Tetradic#FD2D68

RGB percentages

Red35.3%
Green17.6%
Blue99.2%

CMYK percentages

Cyan64.4%
Magenta82.2%
Yellow0.0%
Key (black)0.8%

Color previews

#5a2dfd text on a black background

contrast 3.23:1

Card sample

#5a2dfd text on a white background

contrast 6.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5a2dfd;
Background color
Panel with #5a2dfd background
background-color: #5a2dfd;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(90, 45, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(90, 45, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5a2dfd;
background: linear-gradient(135deg, #5a2dfd, #E52DFD);

Monochromatic scale

Palettes built from #5a2dfd

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.

#5a2dfd 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.

#5a2dfd, answered

What color is #5a2dfd?

#5a2dfd is a balanced electric blue, closest to Blue (ΔE2000 6.8). It sits at 253° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #5a2dfd?

rgb(90, 45, 253) — 90 red, 45 green and 253 blue out of 255, or 35.3% / 17.6% / 99.2% by channel.

Is #5a2dfd a light or a dark color?

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

Should I use black or white text on #5a2dfd?

White. It scores 6.50:1 against #5a2dfd, versus 3.23:1 for black — AA at any size.

What is the complementary color of #5a2dfd?

#D0FD2D sits directly opposite on the wheel. Softer options are the split-complements #FDC22D and #68FD2D, which give the same contrast with far less vibration.

What colors go well with #5a2dfd?

For interface work: #F6F4FA as the surface, #C9C0ED for borders, #5C4B9B for secondary text, #CCC500 as an accent and #1C017E for hover and pressed states. For a palette, the analogous pair #2D68FD and #C22DFD stays calm, while #D0FD2D is the loudest partner.

What is #5a2dfd in CMYK for printing?

cmyk(64%, 82%, 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 #5a2dfd warm or cool?

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

Work with #5a2dfd in the Color Lab