Skip to content

#7f4d52

a dark, soft red · warm · closest name: Brown

RGB
127, 77, 82
HSL
354°, 25%, 40%
CMYK
0, 39, 35, 50
Luminance
0.1043

At a glance

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

Hex
#7f4d52
Hue
354°
red
Saturation
25%
soft
Lightness
40%
dark
Brightness
50%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1043
WCAG relative
Temperature
Warm
29/100 cool
Color family
Red
Tone
Soft
Best ink
White
6.81:1
Closest name
Brown
ΔE2000 14.3
Where it sits
Hue354° of 360°
Saturation25%
Lightness40%
Temperature
Warm ← → Cool29% 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#7f4d52
RGBrgb(127, 77, 82)
HSLhsl(354, 25%, 40%)
CMYKcmyk(0%, 39%, 35%, 50%)
LABlab(38.6 21.8 6.0)
LCHlch(38.6 22.6 15.4)
OKLCHoklch(0.479 0.068 13.5)
Decimal8342866
Display P3color(display-p3 0.498 0.302 0.322)

Copy-ready code

/* CSS */
color: #7f4d52;
background-color: #7f4d52;
/* Tailwind (arbitrary) */
class="text-[#7f4d52] bg-[#7f4d52]"
/* SCSS */
$brand: #7f4d52;
/* SwiftUI */
Color(red: 0.498, green: 0.302, blue: 0.322)
/* Android */
Color.parseColor("#7f4d52")
/* Flutter */
Color(0xFF7F4D52)
/* Python / OpenCV (BGR) */
(82, 77, 127)

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

Accessibility — WCAG contrast

Aa
#7f4d52 on white: 6.81:1
AA ✓ pass · AA-large · AAA
Aa
#7f4d52 on black: 3.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #565552
deuteranopia · #625F51
tritanopia · #88484F

Color scale — 50 to 950

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

#F9F6F6
#F3EDED
#E5D7D8
#D5B9BC
#BF969A
#AA7379
#985C62
#7f4d52
#663E42
#4B2F32
#2F1E1F
Base = 700Lightest = 50 · #F9F6F6Darkest = 950 · #2F1E1F
:root {
  --brand-50: #F9F6F6;
  --brand-100: #F3EDED;
  --brand-200: #E5D7D8;
  --brand-300: #D5B9BC;
  --brand-400: #BF969A;
  --brand-500: #AA7379;
  --brand-600: #985C62;
  --brand-700: #7f4d52;
  --brand-800: #663E42;
  --brand-900: #4B2F32;
  --brand-950: #2F1E1F;
  --brand: #7f4d52;
  --brand-ink: #ffffff;
}

Colors that work with #7f4d52

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#F9F5F6
Tinted page background
Border#E0CCCE
Hairlines and dividers
Muted text#8F575C
Captions on the surface
Accent#49836F
Second voice, not a rival
Dark variant#4F3033
Hover, pressed, headers
Light variant#F5EFF0
Selected rows, tints
Dark surface#231517
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 #7f4d52

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#4D7F7A
Analogous left#7F4D6B
Analogous right#7F614D
Split-complement 1#4D7F61
Split-complement 2#4D6B7F
Triadic 1#527F4D
Triadic 2#4D527F
Tetradic#6B7F4D

RGB percentages

Red49.8%
Green30.2%
Blue32.2%

CMYK percentages

Cyan0.0%
Magenta39.4%
Yellow35.4%
Key (black)50.2%

Color previews

#7f4d52 text on a black background

contrast 3.09:1

Card sample

#7f4d52 text on a white background

contrast 6.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(127, 77, 82, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(127, 77, 82, 0.45);
Border & gradient
Gradient panel
border: 3px solid #7f4d52;
background: linear-gradient(135deg, #7f4d52, #7F694D);

Monochromatic scale

Palettes built from #7f4d52

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.

#7f4d52 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#7f4d52, answered

What color is #7f4d52?

#7f4d52 is a dark soft red, closest to Brown (ΔE2000 14.3). It sits at 354° on the hue wheel with 25% saturation and 40% lightness, which reads as warm.

What is the RGB value of #7f4d52?

rgb(127, 77, 82) — 127 red, 77 green and 82 blue out of 255, or 49.8% / 30.2% / 32.2% by channel.

Is #7f4d52 a light or a dark color?

It is a dark color. Relative luminance is 0.1043 and perceived brightness is 37%, so white text on it reaches 6.81:1.

Should I use black or white text on #7f4d52?

White. It scores 6.81:1 against #7f4d52, versus 3.09:1 for black — AA at any size.

What is the complementary color of #7f4d52?

#4D7F7A sits directly opposite on the wheel. Softer options are the split-complements #4D7F61 and #4D6B7F, which give the same contrast with far less vibration.

What colors go well with #7f4d52?

For interface work: #F9F5F6 as the surface, #E0CCCE for borders, #8F575C for secondary text, #49836F as an accent and #4F3033 for hover and pressed states. For a palette, the analogous pair #7F4D6B and #7F614D stays calm, while #4D7F7A is the loudest partner.

What is #7f4d52 in CMYK for printing?

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

Is #7f4d52 warm or cool?

Warm — it scores 29 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #7F5A4D; nudged cooler, #814B64.

Work with #7f4d52 in the Color Lab