Skip to content

#af6cd3

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

RGB
175, 108, 211
HSL
279°, 54%, 63%
CMYK
17, 49, 0, 17
Luminance
0.2454

At a glance

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

Hex
#af6cd3
Hue
279°
violet
Saturation
54%
vivid
Lightness
63%
balanced
Brightness
83%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2454
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.91:1
Closest name
Medium Orchid
ΔE2000 5.3
Where it sits
Hue279° of 360°
Saturation54%
Lightness63%
Temperature
Warm ← → Cool62% 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#af6cd3
RGBrgb(175, 108, 211)
HSLhsl(279, 54%, 63%)
CMYKcmyk(17%, 49%, 0%, 17%)
LABlab(56.6 44.6 -42.8)
LCHlch(56.6 61.8 316.2)
OKLCHoklch(0.645 0.162 312.7)
Decimal11496659
Display P3color(display-p3 0.686 0.424 0.827)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6cd3 on white: 3.55:1
AA ✗ fail · AA-large · AAA
Aa
#af6cd3 on black: 5.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5484D7
deuteranopia · #6889D0
tritanopia · #AC7C96

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af6cd3 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8F4FB
#F2E9F6
#E3CEEE
#D0A9E5
#af6cd3
#A152CB
#8E38BC
#762F9D
#5F267E
#461F5C
#2C1339
Base = 400Lightest = 50 · #F8F4FBDarkest = 950 · #2C1339
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F2E9F6;
  --brand-200: #E3CEEE;
  --brand-300: #D0A9E5;
  --brand-400: #af6cd3;
  --brand-500: #A152CB;
  --brand-600: #8E38BC;
  --brand-700: #762F9D;
  --brand-800: #5F267E;
  --brand-900: #461F5C;
  --brand-950: #2C1339;
  --brand: #af6cd3;
  --brand-ink: #000000;
}

Colors that work with #af6cd3

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#F8F4FA
Tinted page background
Border#DDC0EC
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#71A12B
Second voice, not a rival
Dark variant#4A1D62
Hover, pressed, headers
Light variant#F4EBF9
Selected rows, tints
Dark surface#1F1424
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 #af6cd3

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#90D36C
Analogous left#7B6CD3
Analogous right#D36CC3
Split-complement 1#C3D36C
Split-complement 2#6CD37B
Triadic 1#D3AF6C
Triadic 2#6CD3AF
Tetradic#D37B6C

RGB percentages

Red68.6%
Green42.4%
Blue82.7%

CMYK percentages

Cyan17.1%
Magenta48.8%
Yellow0.0%
Key (black)17.3%

Color previews

#af6cd3 text on a black background

contrast 5.91:1

Card sample

#af6cd3 text on a white background

contrast 3.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6cd3

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.

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

#af6cd3, answered

What color is #af6cd3?

#af6cd3 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.3). It sits at 279° on the hue wheel with 54% saturation and 63% lightness, which reads as cool.

What is the RGB value of #af6cd3?

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

Is #af6cd3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2454 and perceived brightness is 57%, so black text on it reaches 5.91:1.

Should I use black or white text on #af6cd3?

Black. It scores 5.91:1 against #af6cd3, versus 3.55:1 for white — AA at any size.

What is the complementary color of #af6cd3?

#90D36C sits directly opposite on the wheel. Softer options are the split-complements #C3D36C and #6CD37B, which give the same contrast with far less vibration.

What colors go well with #af6cd3?

For interface work: #F8F4FA as the surface, #DDC0EC for borders, #7F4B9B for secondary text, #71A12B as an accent and #4A1D62 for hover and pressed states. For a palette, the analogous pair #7B6CD3 and #D36CC3 stays calm, while #90D36C is the loudest partner.

What is #af6cd3 in CMYK for printing?

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

Is #af6cd3 warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D36CD1; nudged cooler, #886AD5.

Work with #af6cd3 in the Color Lab