Skip to content

#af5dcc

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

RGB
175, 93, 204
HSL
284°, 52%, 58%
CMYK
14, 54, 0, 20
Luminance
0.2130

At a glance

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

Hex
#af5dcc
Hue
284°
violet
Saturation
52%
vivid
Lightness
58%
balanced
Brightness
80%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2130
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.26:1
Closest name
Medium Orchid
ΔE2000 2.3
Where it sits
Hue284° of 360°
Saturation52%
Lightness58%
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#af5dcc
RGBrgb(175, 93, 204)
HSLhsl(284, 52%, 58%)
CMYKcmyk(14%, 54%, 0%, 20%)
LABlab(53.3 51.0 -44.1)
LCHlch(53.3 67.4 319.2)
OKLCHoklch(0.619 0.178 316.5)
Decimal11492812
Display P3color(display-p3 0.686 0.365 0.800)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5dcc on white: 3.99:1
AA ✗ fail · AA-large · AAA
Aa
#af5dcc on black: 5.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #437AD0
deuteranopia · #5F82C9
tritanopia · #AE6E8C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af5dcc 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
#F3E9F6
#E5CFED
#D5AAE4
#C07FD7
#af5dcc
#993BBA
#7F319B
#66277C
#4B205B
#2F1439
Base = 500Lightest = 50 · #F9F4FADarkest = 950 · #2F1439
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F3E9F6;
  --brand-200: #E5CFED;
  --brand-300: #D5AAE4;
  --brand-400: #C07FD7;
  --brand-500: #af5dcc;
  --brand-600: #993BBA;
  --brand-700: #7F319B;
  --brand-800: #66277C;
  --brand-900: #4B205B;
  --brand-950: #2F1439;
  --brand: #af5dcc;
  --brand-ink: #000000;
}

Colors that work with #af5dcc

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#E0C1EB
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#689F2D
Second voice, not a rival
Dark variant#501F61
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 #af5dcc

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#7ACC5D
Analogous left#775DCC
Analogous right#CC5DB1
Split-complement 1#B1CC5D
Split-complement 2#5DCC77
Triadic 1#CCAF5D
Triadic 2#5DCCAF
Tetradic#CC775D

RGB percentages

Red68.6%
Green36.5%
Blue80.0%

CMYK percentages

Cyan14.2%
Magenta54.4%
Yellow0.0%
Key (black)20.0%

Color previews

#af5dcc text on a black background

contrast 5.26:1

Card sample

#af5dcc text on a white background

contrast 3.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5dcc

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.

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

#af5dcc, answered

What color is #af5dcc?

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

What is the RGB value of #af5dcc?

rgb(175, 93, 204) — 175 red, 93 green and 204 blue out of 255, or 68.6% / 36.5% / 80% by channel.

Is #af5dcc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2130 and perceived brightness is 54%, so black text on it reaches 5.26:1.

Should I use black or white text on #af5dcc?

Black. It scores 5.26:1 against #af5dcc, versus 3.99:1 for white — AA at any size.

What is the complementary color of #af5dcc?

#7ACC5D sits directly opposite on the wheel. Softer options are the split-complements #B1CC5D and #5DCC77, which give the same contrast with far less vibration.

What colors go well with #af5dcc?

For interface work: #F9F4FA as the surface, #E0C1EB for borders, #864B9B for secondary text, #689F2D as an accent and #501F61 for hover and pressed states. For a palette, the analogous pair #775DCC and #CC5DB1 stays calm, while #7ACC5D is the loudest partner.

What is #af5dcc in CMYK for printing?

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

Is #af5dcc 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 #CC5DC0; nudged cooler, #865BCE.

Work with #af5dcc in the Color Lab