Skip to content

#af18be

a dark, electric magenta / pink · neutral · closest name: Dark Orchid

RGB
175, 24, 190
HSL
295°, 78%, 42%
CMYK
8, 87, 0, 26
Luminance
0.1348

At a glance

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

Hex
#af18be
Hue
295°
magenta / pink
Saturation
78%
electric
Lightness
42%
dark
Brightness
75%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1348
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.68:1
Closest name
Dark Orchid
ΔE2000 5
Where it sits
Hue295° of 360°
Saturation78%
Lightness42%
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#af18be
RGBrgb(175, 24, 190)
HSLhsl(295, 78%, 42%)
CMYKcmyk(8%, 87%, 0%, 26%)
LABlab(43.5 73.5 -51.6)
LCHlch(43.5 89.8 324.9)
OKLCHoklch(0.546 0.244 323.8)
Decimal11475134
Display P3color(display-p3 0.686 0.094 0.745)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af18be on white: 5.68:1
AA ✓ pass · AA-large · AAA
Aa
#af18be on black: 3.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005CC2
deuteranopia · #3E6CBB
tritanopia · #B24071

Color scale — 50 to 950

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

#FBF3FC
#F7E6F9
#F0C7F4
#EB9BF2
#E06AEC
#D638E6
#C81BD9
#af18be
#861291
#611269
#3D0B42
Base = 700Lightest = 50 · #FBF3FCDarkest = 950 · #3D0B42
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F7E6F9;
  --brand-200: #F0C7F4;
  --brand-300: #EB9BF2;
  --brand-400: #E06AEC;
  --brand-500: #D638E6;
  --brand-600: #C81BD9;
  --brand-700: #af18be;
  --brand-800: #861291;
  --brand-900: #611269;
  --brand-950: #3D0B42;
  --brand: #af18be;
  --brand-ink: #ffffff;
}

Colors that work with #af18be

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#E9C0ED
Hairlines and dividers
Muted text#944B9B
Captions on the surface
Accent#4BB913
Second voice, not a rival
Dark variant#680E71
Hover, pressed, headers
Light variant#FAE8FC
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 #af18be

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#27BE18
Analogous left#5C18BE
Analogous right#BE187A
Split-complement 1#7ABE18
Split-complement 2#18BE5C
Triadic 1#BEAF18
Triadic 2#18BEAF
Tetradic#BE5C18

RGB percentages

Red68.6%
Green9.4%
Blue74.5%

CMYK percentages

Cyan7.9%
Magenta87.4%
Yellow0.0%
Key (black)25.5%

Color previews

#af18be text on a black background

contrast 3.70:1

Card sample

#af18be text on a white background

contrast 5.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af18be

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.

#af18be 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af18be, answered

What color is #af18be?

#af18be is a dark electric magenta / pink, closest to Dark Orchid (ΔE2000 5). It sits at 295° on the hue wheel with 78% saturation and 42% lightness, which reads as neutral.

What is the RGB value of #af18be?

rgb(175, 24, 190) — 175 red, 24 green and 190 blue out of 255, or 68.6% / 9.4% / 74.5% by channel.

Is #af18be a light or a dark color?

It is a dark color. Relative luminance is 0.1348 and perceived brightness is 46%, so white text on it reaches 5.68:1.

Should I use black or white text on #af18be?

White. It scores 5.68:1 against #af18be, versus 3.70:1 for black — AA at any size.

What is the complementary color of #af18be?

#27BE18 sits directly opposite on the wheel. Softer options are the split-complements #7ABE18 and #18BE5C, which give the same contrast with far less vibration.

What colors go well with #af18be?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #944B9B for secondary text, #4BB913 as an accent and #680E71 for hover and pressed states. For a palette, the analogous pair #5C18BE and #BE187A stays calm, while #27BE18 is the loudest partner.

What is #af18be in CMYK for printing?

cmyk(8%, 87%, 0%, 26%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #af18be 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 #BE1890; nudged cooler, #7216C0.

Work with #af18be in the Color Lab