Skip to content

#af2edc

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

RGB
175, 46, 220
HSL
285°, 71%, 52%
CMYK
21, 79, 0, 14
Luminance
0.1624

At a glance

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

Hex
#af2edc
Hue
285°
violet
Saturation
71%
vivid
Lightness
52%
balanced
Brightness
86%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1624
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.94:1
Closest name
Dark Orchid
ΔE2000 4.3
Where it sits
Hue285° of 360°
Saturation71%
Lightness52%
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#af2edc
RGBrgb(175, 46, 220)
HSLhsl(285, 71%, 52%)
CMYKcmyk(21%, 79%, 0%, 14%)
LABlab(47.3 73.5 -62.8)
LCHlch(47.3 96.7 319.5)
OKLCHoklch(0.579 0.252 315.2)
Decimal11480796
Display P3color(display-p3 0.686 0.180 0.863)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2edc on white: 4.94:1
AA ✓ pass · AA-large · AAA
Aa
#af2edc on black: 4.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0069E1
deuteranopia · #2473D8
tritanopia · #AB5886

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af2edc 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
#E8C9F3
#DA9FEF
#C86FE7
#af2edc
#A523D2
#891DAF
#6E178C
#511565
#320D3F
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #320D3F
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E7F8;
  --brand-200: #E8C9F3;
  --brand-300: #DA9FEF;
  --brand-400: #C86FE7;
  --brand-500: #af2edc;
  --brand-600: #A523D2;
  --brand-700: #891DAF;
  --brand-800: #6E178C;
  --brand-900: #511565;
  --brand-950: #320D3F;
  --brand: #af2edc;
  --brand-ink: #ffffff;
}

Colors that work with #af2edc

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#864B9B
Captions on the surface
Accent#68B319
Second voice, not a rival
Dark variant#56126D
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 #af2edc

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#5BDC2E
Analogous left#582EDC
Analogous right#DC2EB2
Split-complement 1#B2DC2E
Split-complement 2#2EDC58
Triadic 1#DCAF2E
Triadic 2#2EDCAF
Tetradic#DC582E

RGB percentages

Red68.6%
Green18.0%
Blue86.3%

CMYK percentages

Cyan20.5%
Magenta79.1%
Yellow0.0%
Key (black)13.7%

Color previews

#af2edc text on a black background

contrast 4.25:1

Card sample

#af2edc text on a white background

contrast 4.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2edc

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.

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

#af2edc, answered

What color is #af2edc?

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

What is the RGB value of #af2edc?

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

Is #af2edc a light or a dark color?

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

Should I use black or white text on #af2edc?

White. It scores 4.94:1 against #af2edc, versus 4.25:1 for black — AA at any size.

What is the complementary color of #af2edc?

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

What colors go well with #af2edc?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #68B319 as an accent and #56126D for hover and pressed states. For a palette, the analogous pair #582EDC and #DC2EB2 stays calm, while #5BDC2E is the loudest partner.

What is #af2edc in CMYK for printing?

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

Is #af2edc 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 #DC2EC9; nudged cooler, #6F2CDE.

Work with #af2edc in the Color Lab