Skip to content

#a5259e

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

RGB
165, 37, 158
HSL
303°, 63%, 40%
CMYK
0, 78, 4, 35
Luminance
0.1179

At a glance

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

Hex
#a5259e
Hue
303°
magenta / pink
Saturation
63%
vivid
Lightness
40%
dark
Brightness
65%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1179
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.25:1
Closest name
Dark Magenta
ΔE2000 7
Where it sits
Hue303° 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#a5259e
RGBrgb(165, 37, 158)
HSLhsl(303, 63%, 40%)
CMYKcmyk(0%, 78%, 4%, 35%)
LABlab(40.9 63.4 -36.9)
LCHlch(40.9 73.3 329.8)
OKLCHoklch(0.518 0.207 330.6)
Decimal10823070
Display P3color(display-p3 0.647 0.145 0.620)

Copy-ready code

/* CSS */
color: #a5259e;
background-color: #a5259e;
/* Tailwind (arbitrary) */
class="text-[#a5259e] bg-[#a5259e]"
/* SCSS */
$brand: #a5259e;
/* SwiftUI */
Color(red: 0.647, green: 0.145, blue: 0.620)
/* Android */
Color.parseColor("#a5259e")
/* Flutter */
Color(0xFFA5259E)
/* Python / OpenCV (BGR) */
(158, 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 #a5259e · 6.25:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.25:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.36:1
AA fail · AA large pass · AAA fail
Reading the other direction: #a5259e as text scores 6.25:1 on white and 3.36:1 on black.

Accessibility — WCAG contrast

Aa
#a5259e on white: 6.25:1
AA ✓ pass · AA-large · AAA
Aa
#a5259e on black: 3.36:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1355A1
deuteranopia · #4E669B
tritanopia · #AB3761

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #a5259e 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
#EAA3E7
#E075DA
#D648CE
#C82DBF
#a5259e
#851E80
#611A5D
#3D103A
Base = 700Lightest = 50 · #FBF4FBDarkest = 950 · #3D103A
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E8F6;
  --brand-200: #F0CBEE;
  --brand-300: #EAA3E7;
  --brand-400: #E075DA;
  --brand-500: #D648CE;
  --brand-600: #C82DBF;
  --brand-700: #a5259e;
  --brand-800: #851E80;
  --brand-900: #611A5D;
  --brand-950: #3D103A;
  --brand: #a5259e;
  --brand-ink: #ffffff;
}

Colors that work with #a5259e

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#3CAB21
Second voice, not a rival
Dark variant#681764
Hover, pressed, headers
Light variant#FAEAF9
Selected rows, tints
Dark surface#241424
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 #a5259e

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#25A52C
Analogous left#6C25A5
Analogous right#A5255E
Split-complement 1#5EA525
Split-complement 2#25A56C
Triadic 1#9EA525
Triadic 2#259EA5
Tetradic#A56C25

RGB percentages

Red64.7%
Green14.5%
Blue62.0%

CMYK percentages

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

Color previews

#a5259e text on a black background

contrast 3.36:1

Card sample

#a5259e text on a white background

contrast 6.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a5259e

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.

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

#a5259e, answered

What color is #a5259e?

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

What is the RGB value of #a5259e?

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

Is #a5259e a light or a dark color?

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

Should I use black or white text on #a5259e?

White. It scores 6.25:1 against #a5259e, versus 3.36:1 for black — AA at any size.

What is the complementary color of #a5259e?

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

What colors go well with #a5259e?

For interface work: #FAF4FA as the surface, #EDC0EA for borders, #9B4B96 for secondary text, #3CAB21 as an accent and #681764 for hover and pressed states. For a palette, the analogous pair #6C25A5 and #A5255E stays calm, while #25A52C is the loudest partner.

What is #a5259e in CMYK for printing?

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

Is #a5259e 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 #A5256F; nudged cooler, #7E23A7.

Work with #a5259e in the Color Lab