Skip to content

#5a104f

a deep, vivid magenta / pink · neutral · closest name: Purple

RGB
90, 16, 79
HSL
309°, 70%, 21%
CMYK
0, 82, 12, 65
Luminance
0.0311

At a glance

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

Hex
#5a104f
Hue
309°
magenta / pink
Saturation
70%
vivid
Lightness
21%
deep
Brightness
35%
HSV value
Perceived
22%
weighted brightness
Luminance
0.0311
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
12.95:1
Closest name
Purple
ΔE2000 10.1
Where it sits
Hue309° of 360°
Saturation70%
Lightness21%
Temperature
Warm ← → Cool45% 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#5a104f
RGBrgb(90, 16, 79)
HSLhsl(309, 70%, 21%)
CMYKcmyk(0%, 82%, 12%, 65%)
LABlab(20.5 39.8 -19.8)
LCHlch(20.5 44.4 333.6)
OKLCHoklch(0.332 0.128 335.0)
Decimal5902415
Display P3color(display-p3 0.353 0.063 0.310)

Copy-ready code

/* CSS */
color: #5a104f;
background-color: #5a104f;
/* Tailwind (arbitrary) */
class="text-[#5a104f] bg-[#5a104f]"
/* SCSS */
$brand: #5a104f;
/* SwiftUI */
Color(red: 0.353, green: 0.063, blue: 0.310)
/* Android */
Color.parseColor("#5a104f")
/* Flutter */
Color(0xFF5A104F)
/* Python / OpenCV (BGR) */
(79, 16, 90)

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

Accessibility — WCAG contrast

Aa
#5a104f on white: 12.95:1
AA ✓ pass · AA-large · AAA
Aa
#5a104f on black: 1.62:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #102A51
deuteranopia · #2B354D
tritanopia · #5F172E

Color scale — 50 to 950

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

#FCF3FA
#F8E7F6
#F2C9EC
#EEA0E2
#E670D4
#DD40C6
#D025B6
#AD1F98
#8B197A
#5a104f
#3F0E38
Base = 900Lightest = 50 · #FCF3FADarkest = 950 · #3F0E38
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F6;
  --brand-200: #F2C9EC;
  --brand-300: #EEA0E2;
  --brand-400: #E670D4;
  --brand-500: #DD40C6;
  --brand-600: #D025B6;
  --brand-700: #AD1F98;
  --brand-800: #8B197A;
  --brand-900: #5a104f;
  --brand-950: #3F0E38;
  --brand: #5a104f;
  --brand-ink: #ffffff;
}

Colors that work with #5a104f

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#EDC0E6
Hairlines and dividers
Muted text#9B4B8F
Captions on the surface
Accent#165C0E
Second voice, not a rival
Dark variant#6C135F
Hover, pressed, headers
Light variant#FBE9F9
Selected rows, tints
Dark surface#241422
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 #5a104f

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#105A1B
Analogous left#40105A
Analogous right#5A102A
Split-complement 1#2A5A10
Split-complement 2#105A40
Triadic 1#4F5A10
Triadic 2#104F5A
Tetradic#5A4010

RGB percentages

Red35.3%
Green6.3%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta82.2%
Yellow12.2%
Key (black)64.7%

Color previews

#5a104f text on a black background

contrast 1.62:1

Card sample

#5a104f text on a white background

contrast 12.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(90, 16, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(90, 16, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5a104f;
background: linear-gradient(135deg, #5a104f, #5A101E);

Monochromatic scale

Palettes built from #5a104f

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.

#5a104f 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.

#5a104f, answered

What color is #5a104f?

#5a104f is a deep vivid magenta / pink, closest to Purple (ΔE2000 10.1). It sits at 309° on the hue wheel with 70% saturation and 21% lightness, which reads as neutral.

What is the RGB value of #5a104f?

rgb(90, 16, 79) — 90 red, 16 green and 79 blue out of 255, or 35.3% / 6.3% / 31% by channel.

Is #5a104f a light or a dark color?

It is a dark color. Relative luminance is 0.0311 and perceived brightness is 22%, so white text on it reaches 12.95:1.

Should I use black or white text on #5a104f?

White. It scores 12.95:1 against #5a104f, versus 1.62:1 for black — AAA at any size.

What is the complementary color of #5a104f?

#105A1B sits directly opposite on the wheel. Softer options are the split-complements #2A5A10 and #105A40, which give the same contrast with far less vibration.

What colors go well with #5a104f?

For interface work: #FAF4FA as the surface, #EDC0E6 for borders, #9B4B8F for secondary text, #165C0E as an accent and #6C135F for hover and pressed states. For a palette, the analogous pair #40105A and #5A102A stays calm, while #105A1B is the loudest partner.

What is #5a104f in CMYK for printing?

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

Is #5a104f warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5A1034; nudged cooler, #4A0F5B.

Work with #5a104f in the Color Lab