Skip to content

#af46d4

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

RGB
175, 70, 212
HSL
284°, 62%, 55%
CMYK
18, 67, 0, 17
Luminance
0.1825

At a glance

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

Hex
#af46d4
Hue
284°
violet
Saturation
62%
vivid
Lightness
55%
balanced
Brightness
83%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1825
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.65:1
Closest name
Medium Orchid
ΔE2000 4.3
Where it sits
Hue284° of 360°
Saturation62%
Lightness55%
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#af46d4
RGBrgb(175, 70, 212)
HSLhsl(284, 62%, 55%)
CMYKcmyk(18%, 67%, 0%, 17%)
LABlab(49.8 63.3 -54.2)
LCHlch(49.8 83.4 319.4)
OKLCHoklch(0.595 0.219 316.0)
Decimal11486932
Display P3color(display-p3 0.686 0.275 0.831)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af46d4 on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#af46d4 on black: 4.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0070D8
deuteranopia · #4579D1
tritanopia · #AD6188

Color scale — 50 to 950

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

#F9F4FB
#F3E8F7
#E7CCF0
#D8A4EA
#C476DF
#af46d4
#9F2EC7
#8526A6
#6A1F84
#4E1A60
#31103C
Base = 500Lightest = 50 · #F9F4FBDarkest = 950 · #31103C
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E8F7;
  --brand-200: #E7CCF0;
  --brand-300: #D8A4EA;
  --brand-400: #C476DF;
  --brand-500: #af46d4;
  --brand-600: #9F2EC7;
  --brand-700: #8526A6;
  --brand-800: #6A1F84;
  --brand-900: #4E1A60;
  --brand-950: #31103C;
  --brand: #af46d4;
  --brand-ink: #000000;
}

Colors that work with #af46d4

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#E1C0ED
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#68AA22
Second voice, not a rival
Dark variant#531867
Hover, pressed, headers
Light variant#F6EAFA
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 #af46d4

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#6BD446
Analogous left#6846D4
Analogous right#D446B2
Split-complement 1#B2D446
Split-complement 2#46D468
Triadic 1#D4AF46
Triadic 2#46D4AF
Tetradic#D46846

RGB percentages

Red68.6%
Green27.5%
Blue83.1%

CMYK percentages

Cyan17.5%
Magenta67.0%
Yellow0.0%
Key (black)16.9%

Color previews

#af46d4 text on a black background

contrast 4.65:1

Card sample

#af46d4 text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af46d4

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.

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

#af46d4, answered

What color is #af46d4?

#af46d4 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 4.3). It sits at 284° on the hue wheel with 62% saturation and 55% lightness, which reads as cool.

What is the RGB value of #af46d4?

rgb(175, 70, 212) — 175 red, 70 green and 212 blue out of 255, or 68.6% / 27.5% / 83.1% by channel.

Is #af46d4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1825 and perceived brightness is 51%, so black text on it reaches 4.65:1.

Should I use black or white text on #af46d4?

Black. It scores 4.65:1 against #af46d4, versus 4.52:1 for white — AA at any size.

What is the complementary color of #af46d4?

#6BD446 sits directly opposite on the wheel. Softer options are the split-complements #B2D446 and #46D468, which give the same contrast with far less vibration.

What colors go well with #af46d4?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #68AA22 as an accent and #531867 for hover and pressed states. For a palette, the analogous pair #6846D4 and #D446B2 stays calm, while #6BD446 is the loudest partner.

What is #af46d4 in CMYK for printing?

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

Is #af46d4 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 #D446C5; nudged cooler, #7A44D6.

Work with #af46d4 in the Color Lab