Skip to content

#af41c6

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

RGB
175, 65, 198
HSL
290°, 54%, 52%
CMYK
12, 67, 0, 22
Luminance
0.1697

At a glance

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

Hex
#af41c6
Hue
290°
violet
Saturation
54%
vivid
Lightness
52%
balanced
Brightness
78%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1697
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.78:1
Closest name
Medium Orchid
ΔE2000 5.5
Where it sits
Hue290° of 360°
Saturation54%
Lightness52%
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#af41c6
RGBrgb(175, 65, 198)
HSLhsl(290, 54%, 52%)
CMYKcmyk(12%, 67%, 0%, 22%)
LABlab(48.2 62.7 -48.7)
LCHlch(48.2 79.4 322.2)
OKLCHoklch(0.581 0.213 320.2)
Decimal11485638
Display P3color(display-p3 0.686 0.255 0.776)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af41c6 on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#af41c6 on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #106BCA
deuteranopia · #4D76C3
tritanopia · #B0597E

Color scale — 50 to 950

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

#F9F4FB
#F4E9F6
#E8CEEE
#DBA9E5
#C87ED8
#B652CB
#af41c6
#8A2F9D
#6E267E
#511F5B
#331339
Base = 600Lightest = 50 · #F9F4FBDarkest = 950 · #331339
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F4E9F6;
  --brand-200: #E8CEEE;
  --brand-300: #DBA9E5;
  --brand-400: #C87ED8;
  --brand-500: #B652CB;
  --brand-600: #af41c6;
  --brand-700: #8A2F9D;
  --brand-800: #6E267E;
  --brand-900: #511F5B;
  --brand-950: #331339;
  --brand: #af41c6;
  --brand-ink: #ffffff;
}

Colors that work with #af41c6

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#E5C0EC
Hairlines and dividers
Muted text#8D4B9B
Captions on the surface
Accent#5DA12B
Second voice, not a rival
Dark variant#561D62
Hover, pressed, headers
Light variant#F7EBF9
Selected rows, tints
Dark surface#221424
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 #af41c6

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#58C641
Analogous left#6D41C6
Analogous right#C6419B
Split-complement 1#9BC641
Split-complement 2#41C66D
Triadic 1#C6AF41
Triadic 2#41C6AF
Tetradic#C66D41

RGB percentages

Red68.6%
Green25.5%
Blue77.6%

CMYK percentages

Cyan11.6%
Magenta67.2%
Yellow0.0%
Key (black)22.4%

Color previews

#af41c6 text on a black background

contrast 4.39:1

Card sample

#af41c6 text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af41c6

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.

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

#af41c6, answered

What color is #af41c6?

#af41c6 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.5). It sits at 290° on the hue wheel with 54% saturation and 52% lightness, which reads as neutral.

What is the RGB value of #af41c6?

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

Is #af41c6 a light or a dark color?

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

Should I use black or white text on #af41c6?

White. It scores 4.78:1 against #af41c6, versus 4.39:1 for black — AA at any size.

What is the complementary color of #af41c6?

#58C641 sits directly opposite on the wheel. Softer options are the split-complements #9BC641 and #41C66D, which give the same contrast with far less vibration.

What colors go well with #af41c6?

For interface work: #F9F4FA as the surface, #E5C0EC for borders, #8D4B9B for secondary text, #5DA12B as an accent and #561D62 for hover and pressed states. For a palette, the analogous pair #6D41C6 and #C6419B stays calm, while #58C641 is the loudest partner.

What is #af41c6 in CMYK for printing?

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

Is #af41c6 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 #C641AC; nudged cooler, #7E3FC8.

Work with #af41c6 in the Color Lab