Skip to content

#a5259d

a dark, vivid magenta / pink · neutral · closest name: Dark Magenta

RGB
165, 37, 157
HSL
304°, 63%, 40%
CMYK
0, 78, 5, 35
Luminance
0.1176

At a glance

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

Hex
#a5259d
Hue
304°
magenta / pink
Saturation
63%
vivid
Lightness
40%
dark
Brightness
65%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1176
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.27:1
Closest name
Dark Magenta
ΔE2000 7
Where it sits
Hue304° of 360°
Saturation63%
Lightness40%
Temperature
Warm ← → Cool48% cool

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

Every format

HEX#a5259d
RGBrgb(165, 37, 157)
HSLhsl(304, 63%, 40%)
CMYKcmyk(0%, 78%, 5%, 35%)
LABlab(40.8 63.3 -36.4)
LCHlch(40.8 73.0 330.1)
OKLCHoklch(0.517 0.206 330.9)
Decimal10823069
Display P3color(display-p3 0.647 0.145 0.616)

Copy-ready code

/* CSS */
color: #a5259d;
background-color: #a5259d;
/* Tailwind (arbitrary) */
class="text-[#a5259d] bg-[#a5259d]"
/* SCSS */
$brand: #a5259d;
/* SwiftUI */
Color(red: 0.647, green: 0.145, blue: 0.616)
/* Android */
Color.parseColor("#a5259d")
/* Flutter */
Color(0xFFA5259D)
/* Python / OpenCV (BGR) */
(157, 37, 165)

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

Accessibility — WCAG contrast

Aa
#a5259d on white: 6.27:1
AA ✓ pass · AA-large · AAA
Aa
#a5259d on black: 3.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1555A0
deuteranopia · #4F669A
tritanopia · #AC3660

Color scale — 50 to 950

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

#FBF4FB
#F7E8F6
#F0CBEE
#EAA3E6
#E075D9
#D648CD
#C82DBE
#a5259d
#851E7F
#611A5C
#3D103A
Base = 700Lightest = 50 · #FBF4FBDarkest = 950 · #3D103A
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E8F6;
  --brand-200: #F0CBEE;
  --brand-300: #EAA3E6;
  --brand-400: #E075D9;
  --brand-500: #D648CD;
  --brand-600: #C82DBE;
  --brand-700: #a5259d;
  --brand-800: #851E7F;
  --brand-900: #611A5C;
  --brand-950: #3D103A;
  --brand: #a5259d;
  --brand-ink: #ffffff;
}

Colors that work with #a5259d

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#FAF4FA
Tinted page background
Border#EDC0EA
Hairlines and dividers
Muted text#9B4B96
Captions on the surface
Accent#3BAB21
Second voice, not a rival
Dark variant#681763
Hover, pressed, headers
Light variant#FAEAF9
Selected rows, tints
Dark surface#241423
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 #a5259d

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
  • 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#25A52D
Analogous left#6D25A5
Analogous right#A5255D
Split-complement 1#5DA525
Split-complement 2#25A56D
Triadic 1#9DA525
Triadic 2#259DA5
Tetradic#A56D25

RGB percentages

Red64.7%
Green14.5%
Blue61.6%

CMYK percentages

Cyan0.0%
Magenta77.6%
Yellow4.8%
Key (black)35.3%

Color previews

#a5259d text on a black background

contrast 3.35:1

Card sample

#a5259d text on a white background

contrast 6.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(165, 37, 157, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(165, 37, 157, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a5259d;
background: linear-gradient(135deg, #a5259d, #A52548);

Monochromatic scale

Palettes built from #a5259d

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.

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

#a5259d, answered

What color is #a5259d?

#a5259d is a dark vivid magenta / pink, closest to Dark Magenta (ΔE2000 7). It sits at 304° on the hue wheel with 63% saturation and 40% lightness, which reads as neutral.

What is the RGB value of #a5259d?

rgb(165, 37, 157) — 165 red, 37 green and 157 blue out of 255, or 64.7% / 14.5% / 61.6% by channel.

Is #a5259d a light or a dark color?

It is a dark color. Relative luminance is 0.1176 and perceived brightness is 43%, so white text on it reaches 6.27:1.

Should I use black or white text on #a5259d?

White. It scores 6.27:1 against #a5259d, versus 3.35:1 for black — AA at any size.

What is the complementary color of #a5259d?

#25A52D sits directly opposite on the wheel. Softer options are the split-complements #5DA525 and #25A56D, which give the same contrast with far less vibration.

What colors go well with #a5259d?

For interface work: #FAF4FA as the surface, #EDC0EA for borders, #9B4B96 for secondary text, #3BAB21 as an accent and #681763 for hover and pressed states. For a palette, the analogous pair #6D25A5 and #A5255D stays calm, while #25A52D is the loudest partner.

What is #a5259d in CMYK for printing?

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

Is #a5259d warm or cool?

Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A5256E; nudged cooler, #7F23A7.

Work with #a5259d in the Color Lab