Skip to content

#af5ab7

a balanced, soft magenta / pink · neutral · closest name: Medium Orchid

RGB
175, 90, 183
HSL
295°, 39%, 54%
CMYK
4, 51, 0, 28
Luminance
0.1985

At a glance

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

Hex
#af5ab7
Hue
295°
magenta / pink
Saturation
39%
soft
Lightness
54%
balanced
Brightness
72%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1985
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.97:1
Closest name
Medium Orchid
ΔE2000 4.9
Where it sits
Hue295° of 360°
Saturation39%
Lightness54%
Temperature
Warm ← → Cool53% 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#af5ab7
RGBrgb(175, 90, 183)
HSLhsl(295, 39%, 54%)
CMYKcmyk(4%, 51%, 0%, 28%)
LABlab(51.7 48.3 -34.5)
LCHlch(51.7 59.4 324.4)
OKLCHoklch(0.603 0.162 324.1)
Decimal11492023
Display P3color(display-p3 0.686 0.353 0.718)

Copy-ready code

/* CSS */
color: #af5ab7;
background-color: #af5ab7;
/* Tailwind (arbitrary) */
class="text-[#af5ab7] bg-[#af5ab7]"
/* SCSS */
$brand: #af5ab7;
/* SwiftUI */
Color(red: 0.686, green: 0.353, blue: 0.718)
/* Android */
Color.parseColor("#af5ab7")
/* Flutter */
Color(0xFFAF5AB7)
/* Python / OpenCV (BGR) */
(183, 90, 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 #af5ab7 · 4.97:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.23:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.97:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #af5ab7 as text scores 4.23:1 on white and 4.97:1 on black.

Accessibility — WCAG contrast

Aa
#af5ab7 on white: 4.23:1
AA ✗ fail · AA-large · AAA
Aa
#af5ab7 on black: 4.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4E75BA
deuteranopia · #687FB4
tritanopia · #B26580

Color scale — 50 to 950

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

#F9F5FA
#F4EBF4
#E7D2E9
#D9B1DD
#C68ACC
#af5ab7
#A24AAA
#873E8E
#6C3272
#4F2753
#321834
Base = 500Lightest = 50 · #F9F5FADarkest = 950 · #321834
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F4EBF4;
  --brand-200: #E7D2E9;
  --brand-300: #D9B1DD;
  --brand-400: #C68ACC;
  --brand-500: #af5ab7;
  --brand-600: #A24AAA;
  --brand-700: #873E8E;
  --brand-800: #6C3272;
  --brand-900: #4F2753;
  --brand-950: #321834;
  --brand: #af5ab7;
  --brand-ink: #000000;
}

Colors that work with #af5ab7

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#FAF4FA
Tinted page background
Border#E3C6E6
Hairlines and dividers
Muted text#944B9B
Captions on the surface
Accent#58923A
Second voice, not a rival
Dark variant#542759
Hover, pressed, headers
Light variant#F6EDF7
Selected rows, tints
Dark surface#231424
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 #af5ab7

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#62B75A
Analogous left#805AB7
Analogous right#B75A90
Split-complement 1#90B75A
Split-complement 2#5AB780
Triadic 1#B7AF5A
Triadic 2#5AB7AF
Tetradic#B7805A

RGB percentages

Red68.6%
Green35.3%
Blue71.8%

CMYK percentages

Cyan4.4%
Magenta50.8%
Yellow0.0%
Key (black)28.2%

Color previews

#af5ab7 text on a black background

contrast 4.97:1

Card sample

#af5ab7 text on a white background

contrast 4.23:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5ab7

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.

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

#af5ab7, answered

What color is #af5ab7?

#af5ab7 is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 4.9). It sits at 295° on the hue wheel with 39% saturation and 54% lightness, which reads as neutral.

What is the RGB value of #af5ab7?

rgb(175, 90, 183) — 175 red, 90 green and 183 blue out of 255, or 68.6% / 35.3% / 71.8% by channel.

Is #af5ab7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1985 and perceived brightness is 52%, so black text on it reaches 4.97:1.

Should I use black or white text on #af5ab7?

Black. It scores 4.97:1 against #af5ab7, versus 4.23:1 for white — AA at any size.

What is the complementary color of #af5ab7?

#62B75A sits directly opposite on the wheel. Softer options are the split-complements #90B75A and #5AB780, which give the same contrast with far less vibration.

What colors go well with #af5ab7?

For interface work: #FAF4FA as the surface, #E3C6E6 for borders, #944B9B for secondary text, #58923A as an accent and #542759 for hover and pressed states. For a palette, the analogous pair #805AB7 and #B75A90 stays calm, while #62B75A is the loudest partner.

What is #af5ab7 in CMYK for printing?

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

Is #af5ab7 warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B75A9D; nudged cooler, #8D58B9.

Work with #af5ab7 in the Color Lab