Skip to content

#af5262

a balanced, soft red · warm · closest name: Indian Red

RGB
175, 82, 98
HSL
350°, 37%, 50%
CMYK
0, 53, 44, 31
Luminance
0.1603

At a glance

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

Hex
#af5262
Hue
350°
red
Saturation
37%
soft
Lightness
50%
balanced
Brightness
69%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1603
WCAG relative
Temperature
Warm
22/100 cool
Color family
Red
Tone
Soft
Best ink
White
4.99:1
Closest name
Indian Red
ΔE2000 9.5
Where it sits
Hue350° of 360°
Saturation37%
Lightness50%
Temperature
Warm ← → Cool22% 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#af5262
RGBrgb(175, 82, 98)
HSLhsl(350, 37%, 50%)
CMYKcmyk(0%, 53%, 44%, 31%)
LABlab(47.0 39.5 9.1)
LCHlch(47.0 40.5 12.9)
OKLCHoklch(0.559 0.122 11.1)
Decimal11489890
Display P3color(display-p3 0.686 0.322 0.384)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5262 on white: 4.99:1
AA ✓ pass · AA-large · AAA
Aa
#af5262 on black: 4.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #656462
deuteranopia · #7C7660
tritanopia · #BD4758

Color scale — 50 to 950

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

#FAF5F6
#F4EBED
#E9D3D7
#DCB2B9
#CA8C97
#B86674
#af5262
#8C404D
#70343E
#522830
#33191E
Base = 600Lightest = 50 · #FAF5F6Darkest = 950 · #33191E
:root {
  --brand-50: #FAF5F6;
  --brand-100: #F4EBED;
  --brand-200: #E9D3D7;
  --brand-300: #DCB2B9;
  --brand-400: #CA8C97;
  --brand-500: #B86674;
  --brand-600: #af5262;
  --brand-700: #8C404D;
  --brand-800: #70343E;
  --brand-900: #522830;
  --brand-950: #33191E;
  --brand: #af5262;
  --brand-ink: #ffffff;
}

Colors that work with #af5262

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#FAF5F6
Tinted page background
Border#E5C7CC
Hairlines and dividers
Muted text#9B4B58
Captions on the surface
Accent#3C906D
Second voice, not a rival
Dark variant#572830
Hover, pressed, headers
Light variant#F7EEEF
Selected rows, tints
Dark surface#241417
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 #af5262

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#52AF9F
Analogous left#AF5291
Analogous right#AF7152
Split-complement 1#52AF71
Split-complement 2#5291AF
Triadic 1#62AF52
Triadic 2#5262AF
Tetradic#91AF52

RGB percentages

Red68.6%
Green32.2%
Blue38.4%

CMYK percentages

Cyan0.0%
Magenta53.1%
Yellow44.0%
Key (black)31.4%

Color previews

#af5262 text on a black background

contrast 4.21:1

Card sample

#af5262 text on a white background

contrast 4.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5262

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.

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

#af5262, answered

What color is #af5262?

#af5262 is a balanced soft red, closest to Indian Red (ΔE2000 9.5). It sits at 350° on the hue wheel with 37% saturation and 50% lightness, which reads as warm.

What is the RGB value of #af5262?

rgb(175, 82, 98) — 175 red, 82 green and 98 blue out of 255, or 68.6% / 32.2% / 38.4% by channel.

Is #af5262 a light or a dark color?

It is a dark color. Relative luminance is 0.1603 and perceived brightness is 47%, so white text on it reaches 4.99:1.

Should I use black or white text on #af5262?

White. It scores 4.99:1 against #af5262, versus 4.21:1 for black — AA at any size.

What is the complementary color of #af5262?

#52AF9F sits directly opposite on the wheel. Softer options are the split-complements #52AF71 and #5291AF, which give the same contrast with far less vibration.

What colors go well with #af5262?

For interface work: #FAF5F6 as the surface, #E5C7CC for borders, #9B4B58 for secondary text, #3C906D as an accent and #572830 for hover and pressed states. For a palette, the analogous pair #AF5291 and #AF7152 stays calm, while #52AF9F is the loudest partner.

What is #af5262 in CMYK for printing?

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

Is #af5262 warm or cool?

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

Work with #af5262 in the Color Lab