Skip to content

#af18c4

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

RGB
175, 24, 196
HSL
293°, 78%, 43%
CMYK
11, 88, 0, 23
Luminance
0.1375

At a glance

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

Hex
#af18c4
Hue
293°
magenta / pink
Saturation
78%
electric
Lightness
43%
dark
Brightness
77%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1375
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.60:1
Closest name
Dark Orchid
ΔE2000 4.4
Where it sits
Hue293° of 360°
Saturation78%
Lightness43%
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#af18c4
RGBrgb(175, 24, 196)
HSLhsl(293, 78%, 43%)
CMYKcmyk(11%, 88%, 0%, 23%)
LABlab(43.9 74.5 -54.5)
LCHlch(43.9 92.3 323.8)
OKLCHoklch(0.550 0.249 322.1)
Decimal11475140
Display P3color(display-p3 0.686 0.094 0.769)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af18c4 on white: 5.60:1
AA ✓ pass · AA-large · AAA
Aa
#af18c4 on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005EC8
deuteranopia · #386DC0
tritanopia · #B14374

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af18c4 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
#EFC7F5
#E89BF3
#DD69ED
#D137E7
#C31BDA
#af18c4
#821291
#5F1169
#3B0B42
Base = 700Lightest = 50 · #FBF3FCDarkest = 950 · #3B0B42
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F7E6F9;
  --brand-200: #EFC7F5;
  --brand-300: #E89BF3;
  --brand-400: #DD69ED;
  --brand-500: #D137E7;
  --brand-600: #C31BDA;
  --brand-700: #af18c4;
  --brand-800: #821291;
  --brand-900: #5F1169;
  --brand-950: #3B0B42;
  --brand: #af18c4;
  --brand-ink: #ffffff;
}

Colors that work with #af18c4

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#E7C0ED
Hairlines and dividers
Muted text#914B9B
Captions on the surface
Accent#51B913
Second voice, not a rival
Dark variant#650E72
Hover, pressed, headers
Light variant#FAE8FC
Selected rows, tints
Dark surface#221424
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 #af18c4

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#2DC418
Analogous left#5918C4
Analogous right#C41883
Split-complement 1#83C418
Split-complement 2#18C459
Triadic 1#C4AF18
Triadic 2#18C4AF
Tetradic#C45918

RGB percentages

Red68.6%
Green9.4%
Blue76.9%

CMYK percentages

Cyan10.7%
Magenta87.8%
Yellow0.0%
Key (black)23.1%

Color previews

#af18c4 text on a black background

contrast 3.75:1

Card sample

#af18c4 text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af18c4

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.

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

#af18c4, answered

What color is #af18c4?

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

What is the RGB value of #af18c4?

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

Is #af18c4 a light or a dark color?

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

Should I use black or white text on #af18c4?

White. It scores 5.60:1 against #af18c4, versus 3.75:1 for black — AA at any size.

What is the complementary color of #af18c4?

#2DC418 sits directly opposite on the wheel. Softer options are the split-complements #83C418 and #18C459, which give the same contrast with far less vibration.

What colors go well with #af18c4?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #914B9B for secondary text, #51B913 as an accent and #650E72 for hover and pressed states. For a palette, the analogous pair #5918C4 and #C41883 stays calm, while #2DC418 is the loudest partner.

What is #af18c4 in CMYK for printing?

cmyk(11%, 88%, 0%, 23%). 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 #af18c4 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 #C4189A; nudged cooler, #7016C6.

Work with #af18c4 in the Color Lab