Skip to content

#af2cd9

a balanced, vivid violet · cool · closest name: Dark Orchid

RGB
175, 44, 217
HSL
285°, 70%, 51%
CMYK
19, 80, 0, 15
Luminance
0.1593

At a glance

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

Hex
#af2cd9
Hue
285°
violet
Saturation
70%
vivid
Lightness
51%
balanced
Brightness
85%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1593
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.02:1
Closest name
Dark Orchid
ΔE2000 4
Where it sits
Hue285° of 360°
Saturation70%
Lightness51%
Temperature
Warm ← → Cool58% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af2cd9
RGBrgb(175, 44, 217)
HSLhsl(285, 70%, 51%)
CMYKcmyk(19%, 80%, 0%, 15%)
LABlab(46.9 73.5 -61.8)
LCHlch(46.9 96.0 320.0)
OKLCHoklch(0.575 0.251 316.0)
Decimal11480281
Display P3color(display-p3 0.686 0.173 0.851)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2cd9 on white: 5.02:1
AA ✓ pass · AA-large · AAA
Aa
#af2cd9 on black: 4.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0068DE
deuteranopia · #2873D5
tritanopia · #AC5684

Color scale — 50 to 950

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

#F9F3FB
#F4E7F8
#E8CAF2
#DBA0EE
#C970E5
#B741DD
#af2cd9
#8A1FAD
#6F198A
#511664
#330E3F
Base = 600Lightest = 50 · #F9F3FBDarkest = 950 · #330E3F
:root {
  --brand-50: #F9F3FB;
  --brand-100: #F4E7F8;
  --brand-200: #E8CAF2;
  --brand-300: #DBA0EE;
  --brand-400: #C970E5;
  --brand-500: #B741DD;
  --brand-600: #af2cd9;
  --brand-700: #8A1FAD;
  --brand-800: #6F198A;
  --brand-900: #511664;
  --brand-950: #330E3F;
  --brand: #af2cd9;
  --brand-ink: #ffffff;
}

Colors that work with #af2cd9

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#F9F4FA
Tinted page background
Border#E2C0ED
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#65B11B
Second voice, not a rival
Dark variant#56136C
Hover, pressed, headers
Light variant#F7E9FB
Selected rows, tints
Dark surface#201424
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 #af2cd9

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#56D92C
Analogous left#582CD9
Analogous right#D92CAD
Split-complement 1#ADD92C
Split-complement 2#2CD958
Triadic 1#D9AF2C
Triadic 2#2CD9AF
Tetradic#D9582C

RGB percentages

Red68.6%
Green17.3%
Blue85.1%

CMYK percentages

Cyan19.4%
Magenta79.7%
Yellow0.0%
Key (black)14.9%

Color previews

#af2cd9 text on a black background

contrast 4.19:1

Card sample

#af2cd9 text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2cd9

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.

#af2cd9 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#af2cd9, answered

What color is #af2cd9?

#af2cd9 is a balanced vivid violet, closest to Dark Orchid (ΔE2000 4). It sits at 285° on the hue wheel with 70% saturation and 51% lightness, which reads as cool.

What is the RGB value of #af2cd9?

rgb(175, 44, 217) — 175 red, 44 green and 217 blue out of 255, or 68.6% / 17.3% / 85.1% by channel.

Is #af2cd9 a light or a dark color?

It is a dark color. Relative luminance is 0.1593 and perceived brightness is 49%, so white text on it reaches 5.02:1.

Should I use black or white text on #af2cd9?

White. It scores 5.02:1 against #af2cd9, versus 4.19:1 for black — AA at any size.

What is the complementary color of #af2cd9?

#56D92C sits directly opposite on the wheel. Softer options are the split-complements #ADD92C and #2CD958, which give the same contrast with far less vibration.

What colors go well with #af2cd9?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #874B9B for secondary text, #65B11B as an accent and #56136C for hover and pressed states. For a palette, the analogous pair #582CD9 and #D92CAD stays calm, while #56D92C is the loudest partner.

What is #af2cd9 in CMYK for printing?

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

Is #af2cd9 warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D92CC4; nudged cooler, #6F2ADC.

Work with #af2cd9 in the Color Lab