Skip to content

#af0cd3

a dark, electric violet · neutral · closest name: Dark Orchid

RGB
175, 12, 211
HSL
289°, 89%, 44%
CMYK
17, 94, 0, 17
Luminance
0.1408

At a glance

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

Hex
#af0cd3
Hue
289°
violet
Saturation
89%
electric
Lightness
44%
dark
Brightness
83%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1408
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.50:1
Closest name
Dark Orchid
ΔE2000 3.7
Where it sits
Hue289° of 360°
Saturation89%
Lightness44%
Temperature
Warm ← → Cool56% 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#af0cd3
RGBrgb(175, 12, 211)
HSLhsl(289, 89%, 44%)
CMYKcmyk(17%, 94%, 0%, 17%)
LABlab(44.4 78.7 -62.4)
LCHlch(44.4 100.4 321.6)
OKLCHoklch(0.556 0.265 318.3)
Decimal11472083
Display P3color(display-p3 0.686 0.047 0.827)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0cd3 on white: 5.50:1
AA ✓ pass · AA-large · AAA
Aa
#af0cd3 on black: 3.82:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060D8
deuteranopia · #1D6DCF
tritanopia · #AE497C

Color scale — 50 to 950

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

#FBF2FD
#F7E5FB
#EFC4F8
#E795F9
#DB60F6
#CF2BF3
#C00DE8
#af0cd3
#80099A
#5D0B6F
#3A0746
Base = 700Lightest = 50 · #FBF2FDDarkest = 950 · #3A0746
:root {
  --brand-50: #FBF2FD;
  --brand-100: #F7E5FB;
  --brand-200: #EFC4F8;
  --brand-300: #E795F9;
  --brand-400: #DB60F6;
  --brand-500: #CF2BF3;
  --brand-600: #C00DE8;
  --brand-700: #af0cd3;
  --brand-800: #80099A;
  --brand-900: #5D0B6F;
  --brand-950: #3A0746;
  --brand: #af0cd3;
  --brand-ink: #ffffff;
}

Colors that work with #af0cd3

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#E4C0ED
Hairlines and dividers
Muted text#8C4B9B
Captions on the surface
Accent#59C507
Second voice, not a rival
Dark variant#640779
Hover, pressed, headers
Light variant#F9E7FE
Selected rows, tints
Dark surface#211424
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 #af0cd3

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#30D30C
Analogous left#4B0CD3
Analogous right#D30C94
Split-complement 1#94D30C
Split-complement 2#0CD34B
Triadic 1#D3AF0C
Triadic 2#0CD3AF
Tetradic#D34B0C

RGB percentages

Red68.6%
Green4.7%
Blue82.7%

CMYK percentages

Cyan17.1%
Magenta94.3%
Yellow0.0%
Key (black)17.3%

Color previews

#af0cd3 text on a black background

contrast 3.82:1

Card sample

#af0cd3 text on a white background

contrast 5.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0cd3

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.

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

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

#af0cd3, answered

What color is #af0cd3?

#af0cd3 is a dark electric violet, closest to Dark Orchid (ΔE2000 3.7). It sits at 289° on the hue wheel with 89% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #af0cd3?

rgb(175, 12, 211) — 175 red, 12 green and 211 blue out of 255, or 68.6% / 4.7% / 82.7% by channel.

Is #af0cd3 a light or a dark color?

It is a dark color. Relative luminance is 0.1408 and perceived brightness is 47%, so white text on it reaches 5.50:1.

Should I use black or white text on #af0cd3?

White. It scores 5.50:1 against #af0cd3, versus 3.82:1 for black — AA at any size.

What is the complementary color of #af0cd3?

#30D30C sits directly opposite on the wheel. Softer options are the split-complements #94D30C and #0CD34B, which give the same contrast with far less vibration.

What colors go well with #af0cd3?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8C4B9B for secondary text, #59C507 as an accent and #640779 for hover and pressed states. For a palette, the analogous pair #4B0CD3 and #D30C94 stays calm, while #30D30C is the loudest partner.

What is #af0cd3 in CMYK for printing?

cmyk(17%, 94%, 0%, 17%). 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 #af0cd3 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D30CAE; nudged cooler, #660AD5.

Work with #af0cd3 in the Color Lab