Skip to content

#420c21

a deep, vivid magenta / pink · warm · closest name: Maroon

RGB
66, 12, 33
HSL
337°, 69%, 15%
CMYK
0, 82, 50, 74
Luminance
0.0153

At a glance

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

Hex
#420c21
Hue
337°
magenta / pink
Saturation
69%
vivid
Lightness
15%
deep
Brightness
26%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0153
WCAG relative
Temperature
Warm
30/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
16.08:1
Closest name
Maroon
ΔE2000 21.3
Where it sits
Hue337° of 360°
Saturation69%
Lightness15%
Temperature
Warm ← → Cool30% 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#420c21
RGBrgb(66, 12, 33)
HSLhsl(337, 69%, 15%)
CMYKcmyk(0%, 82%, 50%, 74%)
LABlab(12.8 27.5 0.7)
LCHlch(12.8 27.5 1.5)
OKLCHoklch(0.259 0.084 1.5)
Decimal4328481
Display P3color(display-p3 0.259 0.047 0.129)

Copy-ready code

/* CSS */
color: #420c21;
background-color: #420c21;
/* Tailwind (arbitrary) */
class="text-[#420c21] bg-[#420c21]"
/* SCSS */
$brand: #420c21;
/* SwiftUI */
Color(red: 0.259, green: 0.047, blue: 0.129)
/* Android */
Color.parseColor("#420c21")
/* Flutter */
Color(0xFF420C21)
/* Python / OpenCV (BGR) */
(33, 12, 66)

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

Accessibility — WCAG contrast

Aa
#420c21 on white: 16.08:1
AA ✓ pass · AA-large · AAA
Aa
#420c21 on black: 1.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #181A22
deuteranopia · #262520
tritanopia · #480515

Color scale — 50 to 950

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

#FBF3F6
#F8E7EE
#F2CAD9
#EEA0BE
#E5719E
#DC417D
#CF2667
#AD1F56
#8A1945
#641634
#420c21
Base = 950Lightest = 50 · #FBF3F6Darkest = 950 · #420c21
:root {
  --brand-50: #FBF3F6;
  --brand-100: #F8E7EE;
  --brand-200: #F2CAD9;
  --brand-300: #EEA0BE;
  --brand-400: #E5719E;
  --brand-500: #DC417D;
  --brand-600: #CF2667;
  --brand-700: #AD1F56;
  --brand-800: #8A1945;
  --brand-900: #641634;
  --brand-950: #420c21;
  --brand: #420c21;
  --brand-ink: #ffffff;
}

Colors that work with #420c21

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#FAF4F7
Tinted page background
Border#EDC0D1
Hairlines and dividers
Muted text#9B4B6A
Captions on the surface
Accent#0A441F
Second voice, not a rival
Dark variant#6C1436
Hover, pressed, headers
Light variant#FBE9F0
Selected rows, tints
Dark surface#24141A
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 #420c21

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#0C422D
Analogous left#420C3C
Analogous right#42120C
Split-complement 1#0C4212
Split-complement 2#0C3C42
Triadic 1#21420C
Triadic 2#0C2142
Tetradic#3C420C

RGB percentages

Red25.9%
Green4.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta81.8%
Yellow50.0%
Key (black)74.1%

Color previews

#420c21 text on a black background

contrast 1.31:1

Card sample

#420c21 text on a white background

contrast 16.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(66, 12, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 12, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #420c21;
background: linear-gradient(135deg, #420c21, #421B0C);

Monochromatic scale

Palettes built from #420c21

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.

#420c21 in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#420c21, answered

What color is #420c21?

#420c21 is a deep vivid magenta / pink, closest to Maroon (ΔE2000 21.3). It sits at 337° on the hue wheel with 69% saturation and 15% lightness, which reads as warm.

What is the RGB value of #420c21?

rgb(66, 12, 33) — 66 red, 12 green and 33 blue out of 255, or 25.9% / 4.7% / 12.9% by channel.

Is #420c21 a light or a dark color?

It is a dark color. Relative luminance is 0.0153 and perceived brightness is 15%, so white text on it reaches 16.08:1.

Should I use black or white text on #420c21?

White. It scores 16.08:1 against #420c21, versus 1.31:1 for black — AAA at any size.

What is the complementary color of #420c21?

#0C422D sits directly opposite on the wheel. Softer options are the split-complements #0C4212 and #0C3C42, which give the same contrast with far less vibration.

What colors go well with #420c21?

For interface work: #FAF4F7 as the surface, #EDC0D1 for borders, #9B4B6A for secondary text, #0A441F as an accent and #6C1436 for hover and pressed states. For a palette, the analogous pair #420C3C and #42120C stays calm, while #0C422D is the loudest partner.

What is #420c21 in CMYK for printing?

cmyk(0%, 82%, 50%, 74%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #420c21 warm or cool?

Warm — it scores 30 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #420C0D; nudged cooler, #430B35.

Work with #420c21 in the Color Lab