Skip to content

#42012f

a deep, electric magenta / pink · warm · closest name: Purple

RGB
66, 1, 47
HSL
318°, 97%, 13%
CMYK
0, 99, 29, 74
Luminance
0.0139

At a glance

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

Hex
#42012f
Hue
318°
magenta / pink
Saturation
97%
electric
Lightness
13%
deep
Brightness
26%
HSV value
Perceived
15%
weighted brightness
Luminance
0.0139
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
16.44:1
Closest name
Purple
ΔE2000 17
Where it sits
Hue318° of 360°
Saturation97%
Lightness13%
Temperature
Warm ← → Cool40% 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#42012f
RGBrgb(66, 1, 47)
HSLhsl(318, 97%, 13%)
CMYKcmyk(0%, 99%, 29%, 74%)
LABlab(11.9 33.8 -11.1)
LCHlch(11.9 35.6 341.9)
OKLCHoklch(0.255 0.107 343.9)
Decimal4325679
Display P3color(display-p3 0.259 0.004 0.184)

Copy-ready code

/* CSS */
color: #42012f;
background-color: #42012f;
/* Tailwind (arbitrary) */
class="text-[#42012f] bg-[#42012f]"
/* SCSS */
$brand: #42012f;
/* SwiftUI */
Color(red: 0.259, green: 0.004, blue: 0.184)
/* Android */
Color.parseColor("#42012f")
/* Flutter */
Color(0xFF42012F)
/* Python / OpenCV (BGR) */
(47, 1, 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 #42012f · 16.44:1
Use #ffffffAAA at every size.
Aa
White text · 16.44:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 1.28:1
AA fail · AA large fail · AAA fail
Reading the other direction: #42012f as text scores 16.44:1 on white and 1.28:1 on black.

Accessibility — WCAG contrast

Aa
#42012f on white: 16.44:1
AA ✓ pass · AA-large · AAA
Aa
#42012f on black: 1.28:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #091830
deuteranopia · #1F232E
tritanopia · #470118

Color scale — 50 to 950

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

#FDF1FA
#FCE4F5
#FBC1EA
#FD90DE
#FC59CD
#FC22BC
#F104AC
#C9038F
#A10273
#740754
#42012f
Base = 950Lightest = 50 · #FDF1FADarkest = 950 · #42012f
:root {
  --brand-50: #FDF1FA;
  --brand-100: #FCE4F5;
  --brand-200: #FBC1EA;
  --brand-300: #FD90DE;
  --brand-400: #FC59CD;
  --brand-500: #FC22BC;
  --brand-600: #F104AC;
  --brand-700: #C9038F;
  --brand-800: #A10273;
  --brand-900: #740754;
  --brand-950: #42012f;
  --brand: #42012f;
  --brand-ink: #ffffff;
}

Colors that work with #42012f

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#FAF4F9
Tinted page background
Border#EDC0E0
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#004303
Second voice, not a rival
Dark variant#7E025A
Hover, pressed, headers
Light variant#FFE6F7
Selected rows, tints
Dark surface#241420
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 #42012f

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#014214
Analogous left#340142
Analogous right#42010F
Split-complement 1#0F4201
Split-complement 2#014234
Triadic 1#2F4201
Triadic 2#012F42
Tetradic#423401

RGB percentages

Red25.9%
Green0.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta98.5%
Yellow28.8%
Key (black)74.1%

Color previews

#42012f text on a black background

contrast 1.28:1

Card sample

#42012f text on a white background

contrast 16.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(66, 1, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(66, 1, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #42012f;
background: linear-gradient(135deg, #42012f, #420104);

Monochromatic scale

Palettes built from #42012f

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.

#42012f 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

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

#42012f, answered

What color is #42012f?

#42012f is a deep electric magenta / pink, closest to Purple (ΔE2000 17). It sits at 318° on the hue wheel with 97% saturation and 13% lightness, which reads as warm.

What is the RGB value of #42012f?

rgb(66, 1, 47) — 66 red, 1 green and 47 blue out of 255, or 25.9% / 0.4% / 18.4% by channel.

Is #42012f a light or a dark color?

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

Should I use black or white text on #42012f?

White. It scores 16.44:1 against #42012f, versus 1.28:1 for black — AAA at any size.

What is the complementary color of #42012f?

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

What colors go well with #42012f?

For interface work: #FAF4F9 as the surface, #EDC0E0 for borders, #9B4B83 for secondary text, #004303 as an accent and #7E025A for hover and pressed states. For a palette, the analogous pair #340142 and #42010F stays calm, while #014214 is the loudest partner.

What is #42012f in CMYK for printing?

cmyk(0%, 99%, 29%, 74%). 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 #42012f warm or cool?

Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #420117; nudged cooler, #3E0042.

Work with #42012f in the Color Lab