Skip to content

#af2ebf

a balanced, vivid magenta / pink · neutral · closest name: Dark Orchid

RGB
175, 46, 191
HSL
293°, 61%, 47%
CMYK
8, 76, 0, 25
Luminance
0.1483

At a glance

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

Hex
#af2ebf
Hue
293°
magenta / pink
Saturation
61%
vivid
Lightness
47%
balanced
Brightness
75%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1483
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.30:1
Closest name
Dark Orchid
ΔE2000 5
Where it sits
Hue293° of 360°
Saturation61%
Lightness47%
Temperature
Warm ← → Cool54% 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#af2ebf
RGBrgb(175, 46, 191)
HSLhsl(293, 61%, 47%)
CMYKcmyk(8%, 76%, 0%, 25%)
LABlab(45.4 68.3 -49.1)
LCHlch(45.4 84.1 324.3)
OKLCHoklch(0.559 0.228 323.0)
Decimal11480767
Display P3color(display-p3 0.686 0.180 0.749)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2ebf on white: 5.30:1
AA ✓ pass · AA-large · AAA
Aa
#af2ebf on black: 3.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062C3
deuteranopia · #4770BC
tritanopia · #B24A75

Color scale — 50 to 950

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

#FAF4FB
#F5E8F7
#ECCCF0
#E2A5E9
#D377DE
#C44AD3
#af2ebf
#9728A4
#792084
#581B60
#37113C
Base = 600Lightest = 50 · #FAF4FBDarkest = 950 · #37113C
:root {
  --brand-50: #FAF4FB;
  --brand-100: #F5E8F7;
  --brand-200: #ECCCF0;
  --brand-300: #E2A5E9;
  --brand-400: #D377DE;
  --brand-500: #C44AD3;
  --brand-600: #af2ebf;
  --brand-700: #9728A4;
  --brand-800: #792084;
  --brand-900: #581B60;
  --brand-950: #37113C;
  --brand: #af2ebf;
  --brand-ink: #ffffff;
}

Colors that work with #af2ebf

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#E8C0ED
Hairlines and dividers
Muted text#924B9B
Captions on the surface
Accent#54A923
Second voice, not a rival
Dark variant#5E1967
Hover, pressed, headers
Light variant#F8EAFA
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 #af2ebf

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
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#3EBF2E
Analogous left#672EBF
Analogous right#BF2E87
Split-complement 1#87BF2E
Split-complement 2#2EBF67
Triadic 1#BFAF2E
Triadic 2#2EBFAF
Tetradic#BF672E

RGB percentages

Red68.6%
Green18.0%
Blue74.9%

CMYK percentages

Cyan8.4%
Magenta75.9%
Yellow0.0%
Key (black)25.1%

Color previews

#af2ebf text on a black background

contrast 3.97:1

Card sample

#af2ebf text on a white background

contrast 5.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ebf

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.

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

#af2ebf, answered

What color is #af2ebf?

#af2ebf is a balanced vivid magenta / pink, closest to Dark Orchid (ΔE2000 5). It sits at 293° on the hue wheel with 61% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #af2ebf?

rgb(175, 46, 191) — 175 red, 46 green and 191 blue out of 255, or 68.6% / 18% / 74.9% by channel.

Is #af2ebf a light or a dark color?

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

Should I use black or white text on #af2ebf?

White. It scores 5.30:1 against #af2ebf, versus 3.97:1 for black — AA at any size.

What is the complementary color of #af2ebf?

#3EBF2E sits directly opposite on the wheel. Softer options are the split-complements #87BF2E and #2EBF67, which give the same contrast with far less vibration.

What colors go well with #af2ebf?

For interface work: #FAF4FA as the surface, #E8C0ED for borders, #924B9B for secondary text, #54A923 as an accent and #5E1967 for hover and pressed states. For a palette, the analogous pair #672EBF and #BF2E87 stays calm, while #3EBF2E is the loudest partner.

What is #af2ebf in CMYK for printing?

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

Is #af2ebf warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BF2E9A; nudged cooler, #7A2CC2.

Work with #af2ebf in the Color Lab