Skip to content

#5210df

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

RGB
82, 16, 223
HSL
259°, 87%, 47%
CMYK
63, 93, 0, 13
Luminance
0.0749

At a glance

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

Hex
#5210df
Hue
259°
violet
Saturation
87%
electric
Lightness
47%
balanced
Brightness
87%
HSV value
Perceived
35%
weighted brightness
Luminance
0.0749
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.41:1
Closest name
Blue
ΔE2000 4.3
Where it sits
Hue259° of 360°
Saturation87%
Lightness47%
Temperature
Warm ← → Cool73% 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#5210df
RGBrgb(82, 16, 223)
HSLhsl(259, 87%, 47%)
CMYKcmyk(63%, 93%, 0%, 13%)
LABlab(32.9 70.8 -88.6)
LCHlch(32.9 113.4 308.6)
OKLCHoklch(0.455 0.262 282.7)
Decimal5378271
Display P3color(display-p3 0.322 0.063 0.875)

Copy-ready code

/* CSS */
color: #5210df;
background-color: #5210df;
/* Tailwind (arbitrary) */
class="text-[#5210df] bg-[#5210df]"
/* SCSS */
$brand: #5210df;
/* SwiftUI */
Color(red: 0.322, green: 0.063, blue: 0.875)
/* Android */
Color.parseColor("#5210df")
/* Flutter */
Color(0xFF5210DF)
/* Python / OpenCV (BGR) */
(223, 16, 82)

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 #5210df · 8.41:1
Use #ffffffAAA at every size.
Aa
White text · 8.41:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.50:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5210df as text scores 8.41:1 on white and 2.50:1 on black.

Accessibility — WCAG contrast

Aa
#5210df on white: 8.41:1
AA ✓ pass · AA-large · AAA
Aa
#5210df on black: 2.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0053E4
deuteranopia · #0046DC
tritanopia · #005C83

Color scale — 50 to 950

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

#F5F2FD
#ECE5FA
#D5C4F7
#B596F7
#9062F4
#6B2EF0
#5210df
#460EBE
#380B98
#2B0C6E
#1B0845
Base = 600Lightest = 50 · #F5F2FDDarkest = 950 · #1B0845
:root {
  --brand-50: #F5F2FD;
  --brand-100: #ECE5FA;
  --brand-200: #D5C4F7;
  --brand-300: #B596F7;
  --brand-400: #9062F4;
  --brand-500: #6B2EF0;
  --brand-600: #5210df;
  --brand-700: #460EBE;
  --brand-800: #380B98;
  --brand-900: #2B0C6E;
  --brand-950: #1B0845;
  --brand: #5210df;
  --brand-ink: #ffffff;
}

Colors that work with #5210df

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#CEC0ED
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#B6C309
Second voice, not a rival
Dark variant#2C0977
Hover, pressed, headers
Light variant#EEE7FD
Selected rows, tints
Dark surface#191424
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 #5210df

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
  • Text on black or near-black surfaces
  • 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#9DDF10
Analogous left#1036DF
Analogous right#BA10DF
Split-complement 1#DFBA10
Split-complement 2#36DF10
Triadic 1#DF5210
Triadic 2#10DF52
Tetradic#DF1036

RGB percentages

Red32.2%
Green6.3%
Blue87.5%

CMYK percentages

Cyan63.2%
Magenta92.8%
Yellow0.0%
Key (black)12.5%

Color previews

#5210df text on a black background

contrast 2.50:1

Card sample

#5210df text on a white background

contrast 8.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5210df;
Background color
Panel with #5210df background
background-color: #5210df;
Text shadow — hex

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(82, 16, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 16, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5210df;
background: linear-gradient(135deg, #5210df, #DC10DF);

Monochromatic scale

Palettes built from #5210df

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.

#5210df in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#5210df, answered

What color is #5210df?

#5210df is a balanced electric violet, closest to Blue (ΔE2000 4.3). It sits at 259° on the hue wheel with 87% saturation and 47% lightness, which reads as cool.

What is the RGB value of #5210df?

rgb(82, 16, 223) — 82 red, 16 green and 223 blue out of 255, or 32.2% / 6.3% / 87.5% by channel.

Is #5210df a light or a dark color?

It is a dark color. Relative luminance is 0.0749 and perceived brightness is 35%, so white text on it reaches 8.41:1.

Should I use black or white text on #5210df?

White. It scores 8.41:1 against #5210df, versus 2.50:1 for black — AAA at any size.

What is the complementary color of #5210df?

#9DDF10 sits directly opposite on the wheel. Softer options are the split-complements #DFBA10 and #36DF10, which give the same contrast with far less vibration.

What colors go well with #5210df?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #B6C309 as an accent and #2C0977 for hover and pressed states. For a palette, the analogous pair #1036DF and #BA10DF stays calm, while #9DDF10 is the loudest partner.

What is #5210df in CMYK for printing?

cmyk(63%, 93%, 0%, 13%). 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 #5210df warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9E10DF; nudged cooler, #0E18E2.

Work with #5210df in the Color Lab