Skip to content

#520213

a deep, electric red · warm · closest name: Maroon

RGB
82, 2, 19
HSL
347°, 95%, 17%
CMYK
0, 98, 77, 68
Luminance
0.0188

At a glance

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

Hex
#520213
Hue
347°
red
Saturation
95%
electric
Lightness
17%
deep
Brightness
32%
HSV value
Perceived
18%
weighted brightness
Luminance
0.0188
WCAG relative
Temperature
Warm
24/100 cool
Color family
Red
Tone
Electric
Best ink
White
15.25:1
Closest name
Maroon
ΔE2000 13.4
Where it sits
Hue347° of 360°
Saturation95%
Lightness17%
Temperature
Warm ← → Cool24% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#520213
RGBrgb(82, 2, 19)
HSLhsl(347, 95%, 17%)
CMYKcmyk(0%, 98%, 77%, 68%)
LABlab(14.9 35.1 14.3)
LCHlch(14.9 38.0 22.2)
OKLCHoklch(0.280 0.109 17.9)
Decimal5374483
Display P3color(display-p3 0.322 0.008 0.075)

Copy-ready code

/* CSS */
color: #520213;
background-color: #520213;
/* Tailwind (arbitrary) */
class="text-[#520213] bg-[#520213]"
/* SCSS */
$brand: #520213;
/* SwiftUI */
Color(red: 0.322, green: 0.008, blue: 0.075)
/* Android */
Color.parseColor("#520213")
/* Flutter */
Color(0xFF520213)
/* Python / OpenCV (BGR) */
(19, 2, 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 #520213 · 15.25:1
Use #ffffffAAA at every size.
Aa
White text · 15.25:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.38:1
AA fail · AA large fail · AAA fail
Reading the other direction: #520213 as text scores 15.25:1 on white and 1.38:1 on black.

Accessibility — WCAG contrast

Aa
#520213 on white: 15.25:1
AA ✓ pass · AA-large · AAA
Aa
#520213 on black: 1.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1D1B13
deuteranopia · #302B10
tritanopia · #5B0009

Color scale — 50 to 950

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

#FDF1F4
#FCE4E9
#FAC2CE
#FC91A8
#FB5B7D
#FA2451
#EF0637
#C7052E
#9F0425
#73081E
#520213
Base = 950Lightest = 50 · #FDF1F4Darkest = 950 · #520213
:root {
  --brand-50: #FDF1F4;
  --brand-100: #FCE4E9;
  --brand-200: #FAC2CE;
  --brand-300: #FC91A8;
  --brand-400: #FB5B7D;
  --brand-500: #FA2451;
  --brand-600: #EF0637;
  --brand-700: #C7052E;
  --brand-800: #9F0425;
  --brand-900: #73081E;
  --brand-950: #520213;
  --brand: #520213;
  --brand-ink: #ffffff;
}

Colors that work with #520213

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#FAF4F6
Tinted page background
Border#EDC0C9
Hairlines and dividers
Muted text#9B4B5C
Captions on the surface
Accent#00542D
Second voice, not a rival
Dark variant#7C031D
Hover, pressed, headers
Light variant#FEE6EB
Selected rows, tints
Dark surface#241417
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 #520213

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black 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#025241
Analogous left#52023B
Analogous right#521902
Split-complement 1#025219
Split-complement 2#023B52
Triadic 1#135202
Triadic 2#021352
Tetradic#3B5202

RGB percentages

Red32.2%
Green0.8%
Blue7.5%

CMYK percentages

Cyan0.0%
Magenta97.6%
Yellow76.8%
Key (black)67.8%

Color previews

#520213 text on a black background

contrast 1.38:1

Card sample

#520213 text on a white background

contrast 15.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(82, 2, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(82, 2, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #520213;
background: linear-gradient(135deg, #520213, #522602);

Monochromatic scale

Palettes built from #520213

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.

#520213 in the real world

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

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#520213, answered

What color is #520213?

#520213 is a deep electric red, closest to Maroon (ΔE2000 13.4). It sits at 347° on the hue wheel with 95% saturation and 17% lightness, which reads as warm.

What is the RGB value of #520213?

rgb(82, 2, 19) — 82 red, 2 green and 19 blue out of 255, or 32.2% / 0.8% / 7.5% by channel.

Is #520213 a light or a dark color?

It is a dark color. Relative luminance is 0.0188 and perceived brightness is 18%, so white text on it reaches 15.25:1.

Should I use black or white text on #520213?

White. It scores 15.25:1 against #520213, versus 1.38:1 for black — AAA at any size.

What is the complementary color of #520213?

#025241 sits directly opposite on the wheel. Softer options are the split-complements #025219 and #023B52, which give the same contrast with far less vibration.

What colors go well with #520213?

For interface work: #FAF4F6 as the surface, #EDC0C9 for borders, #9B4B5C for secondary text, #00542D as an accent and #7C031D for hover and pressed states. For a palette, the analogous pair #52023B and #521902 stays calm, while #025241 is the loudest partner.

What is #520213 in CMYK for printing?

cmyk(0%, 98%, 77%, 68%). 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 #520213 warm or cool?

Warm — it scores 24 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #520E02; nudged cooler, #530130.

Work with #520213 in the Color Lab