Skip to content

#d862ab

a balanced, vivid magenta / pink · warm · closest name: Hot Pink

RGB
216, 98, 171
HSL
323°, 60%, 62%
CMYK
0, 55, 21, 15
Luminance
0.2627

At a glance

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

Hex
#d862ab
Hue
323°
magenta / pink
Saturation
60%
vivid
Lightness
62%
balanced
Brightness
85%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2627
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
6.25:1
Closest name
Hot Pink
ΔE2000 7.4
Where it sits
Hue323° of 360°
Saturation60%
Lightness62%
Temperature
Warm ← → Cool37% 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#d862ab
RGBrgb(216, 98, 171)
HSLhsl(323, 60%, 62%)
CMYKcmyk(0%, 55%, 21%, 15%)
LABlab(58.3 54.6 -16.9)
LCHlch(58.3 57.1 342.8)
OKLCHoklch(0.663 0.169 344.7)
Decimal14181035
Display P3color(display-p3 0.847 0.384 0.671)

Copy-ready code

/* CSS */
color: #d862ab;
background-color: #d862ab;
/* Tailwind (arbitrary) */
class="text-[#d862ab] bg-[#d862ab]"
/* SCSS */
$brand: #d862ab;
/* SwiftUI */
Color(red: 0.847, green: 0.384, blue: 0.671)
/* Android */
Color.parseColor("#d862ab")
/* Flutter */
Color(0xFFD862AB)
/* Python / OpenCV (BGR) */
(171, 98, 216)

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

Accessibility — WCAG contrast

Aa
#d862ab on white: 3.36:1
AA ✗ fail · AA-large · AAA
Aa
#d862ab on black: 6.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6C80AD
deuteranopia · #8D93A8
tritanopia · #E5617F

Color scale — 50 to 950

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

#FBF4F8
#F7E9F1
#EFCCE2
#E9A5CF
#d862ab
#D24B9F
#C4318C
#A32975
#83205D
#5F1B45
#3B112B
Base = 400Lightest = 50 · #FBF4F8Darkest = 950 · #3B112B
:root {
  --brand-50: #FBF4F8;
  --brand-100: #F7E9F1;
  --brand-200: #EFCCE2;
  --brand-300: #E9A5CF;
  --brand-400: #d862ab;
  --brand-500: #D24B9F;
  --brand-600: #C4318C;
  --brand-700: #A32975;
  --brand-800: #83205D;
  --brand-900: #5F1B45;
  --brand-950: #3B112B;
  --brand: #d862ab;
  --brand-ink: #000000;
}

Colors that work with #d862ab

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4F8
Tinted page background
Border#EDC0DC
Hairlines and dividers
Muted text#9B4B7C
Captions on the surface
Accent#24A836
Second voice, not a rival
Dark variant#661949
Hover, pressed, headers
Light variant#FAEBF4
Selected rows, tints
Dark surface#24141E
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 #d862ab

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#62D88F
Analogous left#CA62D8
Analogous right#D86270
Split-complement 1#70D862
Split-complement 2#62D8CA
Triadic 1#ABD862
Triadic 2#62ABD8
Tetradic#D8CA62

RGB percentages

Red84.7%
Green38.4%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta54.6%
Yellow20.8%
Key (black)15.3%

Color previews

#d862ab text on a black background

contrast 6.25:1

Card sample

#d862ab text on a white background

contrast 3.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(216, 98, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(216, 98, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d862ab;
background: linear-gradient(135deg, #d862ab, #D86862);

Monochromatic scale

Palettes built from #d862ab

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.

#d862ab 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.

#d862ab, answered

What color is #d862ab?

#d862ab is a balanced vivid magenta / pink, closest to Hot Pink (ΔE2000 7.4). It sits at 323° on the hue wheel with 60% saturation and 62% lightness, which reads as warm.

What is the RGB value of #d862ab?

rgb(216, 98, 171) — 216 red, 98 green and 171 blue out of 255, or 84.7% / 38.4% / 67.1% by channel.

Is #d862ab a light or a dark color?

It is a mid-tone. Relative luminance is 0.2627 and perceived brightness is 59%, so black text on it reaches 6.25:1.

Should I use black or white text on #d862ab?

Black. It scores 6.25:1 against #d862ab, versus 3.36:1 for white — AA at any size.

What is the complementary color of #d862ab?

#62D88F sits directly opposite on the wheel. Softer options are the split-complements #70D862 and #62D8CA, which give the same contrast with far less vibration.

What colors go well with #d862ab?

For interface work: #FAF4F8 as the surface, #EDC0DC for borders, #9B4B7C for secondary text, #24A836 as an accent and #661949 for hover and pressed states. For a palette, the analogous pair #CA62D8 and #D86270 stays calm, while #62D88F is the loudest partner.

What is #d862ab in CMYK for printing?

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

Is #d862ab warm or cool?

Warm — it scores 37 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D86280; nudged cooler, #DA60D8.

Work with #d862ab in the Color Lab