Skip to content

#af41da

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

RGB
175, 65, 218
HSL
283°, 67%, 56%
CMYK
20, 70, 0, 15
Luminance
0.1796

At a glance

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

Hex
#af41da
Hue
283°
violet
Saturation
67%
vivid
Lightness
56%
balanced
Brightness
85%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1796
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.59:1
Closest name
Medium Orchid
ΔE2000 5.2
Where it sits
Hue283° of 360°
Saturation67%
Lightness56%
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#af41da
RGBrgb(175, 65, 218)
HSLhsl(283, 67%, 56%)
CMYKcmyk(20%, 70%, 0%, 15%)
LABlab(49.4 66.5 -58.2)
LCHlch(49.4 88.4 318.8)
OKLCHoklch(0.594 0.231 314.7)
Decimal11485658
Display P3color(display-p3 0.686 0.255 0.855)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af41da on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#af41da on black: 4.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006FDE
deuteranopia · #3B78D7
tritanopia · #AB6189

Color scale — 50 to 950

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

#F9F3FB
#F3E8F8
#E6CAF2
#D7A1ED
#C472E4
#af41da
#9E28CD
#8421AB
#6A1B89
#4E1763
#310F3E
Base = 500Lightest = 50 · #F9F3FBDarkest = 950 · #310F3E
:root {
  --brand-50: #F9F3FB;
  --brand-100: #F3E8F8;
  --brand-200: #E6CAF2;
  --brand-300: #D7A1ED;
  --brand-400: #C472E4;
  --brand-500: #af41da;
  --brand-600: #9E28CD;
  --brand-700: #8421AB;
  --brand-800: #6A1B89;
  --brand-900: #4E1763;
  --brand-950: #310F3E;
  --brand: #af41da;
  --brand-ink: #000000;
}

Colors that work with #af41da

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F9F4FA
Tinted page background
Border#E0C0ED
Hairlines and dividers
Muted text#844B9B
Captions on the surface
Accent#6BAF1D
Second voice, not a rival
Dark variant#53156B
Hover, pressed, headers
Light variant#F6EAFB
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 #af41da

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#6CDA41
Analogous left#6241DA
Analogous right#DA41B9
Split-complement 1#B9DA41
Split-complement 2#41DA62
Triadic 1#DAAF41
Triadic 2#41DAAF
Tetradic#DA6241

RGB percentages

Red68.6%
Green25.5%
Blue85.5%

CMYK percentages

Cyan19.7%
Magenta70.2%
Yellow0.0%
Key (black)14.5%

Color previews

#af41da text on a black background

contrast 4.59:1

Card sample

#af41da text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af41da

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.

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

#af41da, answered

What color is #af41da?

#af41da is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.2). It sits at 283° on the hue wheel with 67% saturation and 56% lightness, which reads as cool.

What is the RGB value of #af41da?

rgb(175, 65, 218) — 175 red, 65 green and 218 blue out of 255, or 68.6% / 25.5% / 85.5% by channel.

Is #af41da a light or a dark color?

It is a dark color. Relative luminance is 0.1796 and perceived brightness is 51%, so black text on it reaches 4.59:1.

Should I use black or white text on #af41da?

Black. It scores 4.59:1 against #af41da, versus 4.57:1 for white — AA at any size.

What is the complementary color of #af41da?

#6CDA41 sits directly opposite on the wheel. Softer options are the split-complements #B9DA41 and #41DA62, which give the same contrast with far less vibration.

What colors go well with #af41da?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #844B9B for secondary text, #6BAF1D as an accent and #53156B for hover and pressed states. For a palette, the analogous pair #6241DA and #DA41B9 stays calm, while #6CDA41 is the loudest partner.

What is #af41da in CMYK for printing?

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

Is #af41da 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 #DA41CD; nudged cooler, #763FDC.

Work with #af41da in the Color Lab