Skip to content

#af2ddf

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

RGB
175, 45, 223
HSL
284°, 74%, 53%
CMYK
22, 80, 0, 13
Luminance
0.1632

At a glance

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

Hex
#af2ddf
Hue
284°
violet
Saturation
74%
vivid
Lightness
53%
balanced
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1632
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.93:1
Closest name
Dark Orchid
ΔE2000 4.4
Where it sits
Hue284° of 360°
Saturation74%
Lightness53%
Temperature
Warm ← → Cool59% 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#af2ddf
RGBrgb(175, 45, 223)
HSLhsl(284, 74%, 53%)
CMYKcmyk(22%, 80%, 0%, 13%)
LABlab(47.4 74.4 -64.3)
LCHlch(47.4 98.3 319.1)
OKLCHoklch(0.580 0.255 314.5)
Decimal11480543
Display P3color(display-p3 0.686 0.176 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2ddf on white: 4.93:1
AA ✓ pass · AA-large · AAA
Aa
#af2ddf on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006AE4
deuteranopia · #1C73DB
tritanopia · #AA5988

Color scale — 50 to 950

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

#F9F3FC
#F4E7F8
#E8C8F3
#DA9EF0
#C76DE9
#af2ddf
#A420D4
#891BB1
#6D168E
#501467
#320C40
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #320C40
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E7F8;
  --brand-200: #E8C8F3;
  --brand-300: #DA9EF0;
  --brand-400: #C76DE9;
  --brand-500: #af2ddf;
  --brand-600: #A420D4;
  --brand-700: #891BB1;
  --brand-800: #6D168E;
  --brand-900: #501467;
  --brand-950: #320C40;
  --brand: #af2ddf;
  --brand-ink: #ffffff;
}

Colors that work with #af2ddf

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#E1C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#69B517
Second voice, not a rival
Dark variant#55116F
Hover, pressed, headers
Light variant#F7E9FC
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 #af2ddf

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#5DDF2D
Analogous left#562DDF
Analogous right#DF2DB6
Split-complement 1#B6DF2D
Split-complement 2#2DDF56
Triadic 1#DFAF2D
Triadic 2#2DDFAF
Tetradic#DF562D

RGB percentages

Red68.6%
Green17.6%
Blue87.5%

CMYK percentages

Cyan21.5%
Magenta79.8%
Yellow0.0%
Key (black)12.5%

Color previews

#af2ddf text on a black background

contrast 4.26:1

Card sample

#af2ddf text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2ddf

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.

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

#af2ddf, answered

What color is #af2ddf?

#af2ddf is a balanced vivid violet, closest to Dark Orchid (ΔE2000 4.4). It sits at 284° on the hue wheel with 74% saturation and 53% lightness, which reads as cool.

What is the RGB value of #af2ddf?

rgb(175, 45, 223) — 175 red, 45 green and 223 blue out of 255, or 68.6% / 17.6% / 87.5% by channel.

Is #af2ddf a light or a dark color?

It is a dark color. Relative luminance is 0.1632 and perceived brightness is 50%, so white text on it reaches 4.93:1.

Should I use black or white text on #af2ddf?

White. It scores 4.93:1 against #af2ddf, versus 4.26:1 for black — AA at any size.

What is the complementary color of #af2ddf?

#5DDF2D sits directly opposite on the wheel. Softer options are the split-complements #B6DF2D and #2DDF56, which give the same contrast with far less vibration.

What colors go well with #af2ddf?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #854B9B for secondary text, #69B517 as an accent and #55116F for hover and pressed states. For a palette, the analogous pair #562DDF and #DF2DB6 stays calm, while #5DDF2D is the loudest partner.

What is #af2ddf in CMYK for printing?

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

Is #af2ddf warm or cool?

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

Work with #af2ddf in the Color Lab