Skip to content

#af797d

a balanced, soft red · warm · closest name: Rosy Brown

RGB
175, 121, 125
HSL
356°, 25%, 58%
CMYK
0, 31, 29, 31
Luminance
0.2427

At a glance

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

Hex
#af797d
Hue
356°
red
Saturation
25%
soft
Lightness
58%
balanced
Brightness
69%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2427
WCAG relative
Temperature
Warm
28/100 cool
Color family
Red
Tone
Soft
Best ink
Black
5.85:1
Closest name
Rosy Brown
ΔE2000 7
Where it sits
Hue356° of 360°
Saturation25%
Lightness58%
Temperature
Warm ← → Cool28% 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#af797d
RGBrgb(175, 121, 125)
HSLhsl(356, 25%, 58%)
CMYKcmyk(0%, 31%, 29%, 31%)
LABlab(56.4 21.7 6.3)
LCHlch(56.4 22.6 16.3)
OKLCHoklch(0.632 0.068 14.3)
Decimal11499901
Display P3color(display-p3 0.686 0.475 0.490)

Copy-ready code

/* CSS */
color: #af797d;
background-color: #af797d;
/* Tailwind (arbitrary) */
class="text-[#af797d] bg-[#af797d]"
/* SCSS */
$brand: #af797d;
/* SwiftUI */
Color(red: 0.686, green: 0.475, blue: 0.490)
/* Android */
Color.parseColor("#af797d")
/* Flutter */
Color(0xFFAF797D)
/* Python / OpenCV (BGR) */
(125, 121, 175)

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

Accessibility — WCAG contrast

Aa
#af797d on white: 3.59:1
AA ✗ fail · AA-large · AAA
Aa
#af797d on black: 5.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #82817D
deuteranopia · #8F8B7C
tritanopia · #B9747B

Color scale — 50 to 950

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

#F9F6F6
#F3EDED
#E5D6D8
#D5B9BB
#C09699
#af797d
#995C60
#804C50
#663D40
#4B2F31
#2F1D1F
Base = 500Lightest = 50 · #F9F6F6Darkest = 950 · #2F1D1F
:root {
  --brand-50: #F9F6F6;
  --brand-100: #F3EDED;
  --brand-200: #E5D6D8;
  --brand-300: #D5B9BB;
  --brand-400: #C09699;
  --brand-500: #af797d;
  --brand-600: #995C60;
  --brand-700: #804C50;
  --brand-800: #663D40;
  --brand-900: #4B2F31;
  --brand-950: #2F1D1F;
  --brand: #af797d;
  --brand-ink: #000000;
}

Colors that work with #af797d

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#F9F5F6
Tinted page background
Border#E0CCCD
Hairlines and dividers
Muted text#90565A
Captions on the surface
Accent#488470
Second voice, not a rival
Dark variant#503032
Hover, pressed, headers
Light variant#F5EFF0
Selected rows, tints
Dark surface#231516
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 #af797d

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#79AFAB
Analogous left#AF7998
Analogous right#AF9079
Split-complement 1#79AF90
Split-complement 2#7998AF
Triadic 1#7DAF79
Triadic 2#797DAF
Tetradic#98AF79

RGB percentages

Red68.6%
Green47.5%
Blue49.0%

CMYK percentages

Cyan0.0%
Magenta30.9%
Yellow28.6%
Key (black)31.4%

Color previews

#af797d text on a black background

contrast 5.85:1

Card sample

#af797d text on a white background

contrast 3.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 121, 125, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 121, 125, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af797d;
background: linear-gradient(135deg, #af797d, #AF9979);

Monochromatic scale

Palettes built from #af797d

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.

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

#af797d, answered

What color is #af797d?

#af797d is a balanced soft red, closest to Rosy Brown (ΔE2000 7). It sits at 356° on the hue wheel with 25% saturation and 58% lightness, which reads as warm.

What is the RGB value of #af797d?

rgb(175, 121, 125) — 175 red, 121 green and 125 blue out of 255, or 68.6% / 47.5% / 49% by channel.

Is #af797d a light or a dark color?

It is a mid-tone. Relative luminance is 0.2427 and perceived brightness is 55%, so black text on it reaches 5.85:1.

Should I use black or white text on #af797d?

Black. It scores 5.85:1 against #af797d, versus 3.59:1 for white — AA at any size.

What is the complementary color of #af797d?

#79AFAB sits directly opposite on the wheel. Softer options are the split-complements #79AF90 and #7998AF, which give the same contrast with far less vibration.

What colors go well with #af797d?

For interface work: #F9F5F6 as the surface, #E0CCCD for borders, #90565A for secondary text, #488470 as an accent and #503032 for hover and pressed states. For a palette, the analogous pair #AF7998 and #AF9079 stays calm, while #79AFAB is the loudest partner.

What is #af797d in CMYK for printing?

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

Is #af797d warm or cool?

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

Work with #af797d in the Color Lab