Skip to content

#af66cd

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

RGB
175, 102, 205
HSL
283°, 51%, 60%
CMYK
15, 50, 0, 20
Luminance
0.2302

At a glance

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

Hex
#af66cd
Hue
283°
violet
Saturation
51%
vivid
Lightness
60%
balanced
Brightness
80%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2302
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.60:1
Closest name
Medium Orchid
ΔE2000 3.9
Where it sits
Hue283° of 360°
Saturation51%
Lightness60%
Temperature
Warm ← → Cool60% 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#af66cd
RGBrgb(175, 102, 205)
HSLhsl(283, 51%, 60%)
CMYKcmyk(15%, 50%, 0%, 20%)
LABlab(55.1 46.5 -41.8)
LCHlch(55.1 62.5 318.1)
OKLCHoklch(0.632 0.165 315.3)
Decimal11495117
Display P3color(display-p3 0.686 0.400 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af66cd on white: 3.75:1
AA ✗ fail · AA-large · AAA
Aa
#af66cd on black: 5.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5080D1
deuteranopia · #6686CA
tritanopia · #AD7690

Color scale — 50 to 950

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

#F9F4FA
#F2EAF6
#E4CFED
#D3AAE3
#BD80D6
#af66cd
#943CB8
#7C329A
#63287B
#49215A
#2E1438
Base = 500Lightest = 50 · #F9F4FADarkest = 950 · #2E1438
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F2EAF6;
  --brand-200: #E4CFED;
  --brand-300: #D3AAE3;
  --brand-400: #BD80D6;
  --brand-500: #af66cd;
  --brand-600: #943CB8;
  --brand-700: #7C329A;
  --brand-800: #63287B;
  --brand-900: #49215A;
  --brand-950: #2E1438;
  --brand: #af66cd;
  --brand-ink: #000000;
}

Colors that work with #af66cd

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#DFC2EB
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6A9E2E
Second voice, not a rival
Dark variant#4D1F60
Hover, pressed, headers
Light variant#F5ECF9
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 #af66cd

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#84CD66
Analogous left#7B66CD
Analogous right#CD66B8
Split-complement 1#B8CD66
Split-complement 2#66CD7B
Triadic 1#CDAF66
Triadic 2#66CDAF
Tetradic#CD7B66

RGB percentages

Red68.6%
Green40.0%
Blue80.4%

CMYK percentages

Cyan14.6%
Magenta50.2%
Yellow0.0%
Key (black)19.6%

Color previews

#af66cd text on a black background

contrast 5.60:1

Card sample

#af66cd text on a white background

contrast 3.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af66cd

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.

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

#af66cd, answered

What color is #af66cd?

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

What is the RGB value of #af66cd?

rgb(175, 102, 205) — 175 red, 102 green and 205 blue out of 255, or 68.6% / 40% / 80.4% by channel.

Is #af66cd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2302 and perceived brightness is 56%, so black text on it reaches 5.60:1.

Should I use black or white text on #af66cd?

Black. It scores 5.60:1 against #af66cd, versus 3.75:1 for white — AA at any size.

What is the complementary color of #af66cd?

#84CD66 sits directly opposite on the wheel. Softer options are the split-complements #B8CD66 and #66CD7B, which give the same contrast with far less vibration.

What colors go well with #af66cd?

For interface work: #F9F4FA as the surface, #DFC2EB for borders, #834B9B for secondary text, #6A9E2E as an accent and #4D1F60 for hover and pressed states. For a palette, the analogous pair #7B66CD and #CD66B8 stays calm, while #84CD66 is the loudest partner.

What is #af66cd in CMYK for printing?

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

Is #af66cd warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD66C5; nudged cooler, #8964CF.

Work with #af66cd in the Color Lab