Skip to content

#af4dcd

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

RGB
175, 77, 205
HSL
286°, 56%, 55%
CMYK
15, 62, 0, 20
Luminance
0.1883

At a glance

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

Hex
#af4dcd
Hue
286°
violet
Saturation
56%
vivid
Lightness
55%
balanced
Brightness
80%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1883
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.77:1
Closest name
Medium Orchid
ΔE2000 3.2
Where it sits
Hue286° of 360°
Saturation56%
Lightness55%
Temperature
Warm ← → Cool58% 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#af4dcd
RGBrgb(175, 77, 205)
HSLhsl(286, 56%, 55%)
CMYKcmyk(15%, 62%, 0%, 20%)
LABlab(50.5 58.9 -49.1)
LCHlch(50.5 76.7 320.2)
OKLCHoklch(0.599 0.203 317.5)
Decimal11488717
Display P3color(display-p3 0.686 0.302 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4dcd on white: 4.41:1
AA ✗ fail · AA-large · AAA
Aa
#af4dcd on black: 4.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2572D1
deuteranopia · #517BCA
tritanopia · #AE6386

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af4dcd 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
#F3E9F6
#E7CDEE
#D8A7E6
#C47CDA
#af4dcd
#9F36BF
#842D9F
#6A247F
#4E1E5D
#31133A
Base = 500Lightest = 50 · #F9F4FBDarkest = 950 · #31133A
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E9F6;
  --brand-200: #E7CDEE;
  --brand-300: #D8A7E6;
  --brand-400: #C47CDA;
  --brand-500: #af4dcd;
  --brand-600: #9F36BF;
  --brand-700: #842D9F;
  --brand-800: #6A247F;
  --brand-900: #4E1E5D;
  --brand-950: #31133A;
  --brand: #af4dcd;
  --brand-ink: #000000;
}

Colors that work with #af4dcd

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#E2C0ED
Hairlines and dividers
Muted text#884B9B
Captions on the surface
Accent#64A428
Second voice, not a rival
Dark variant#531C64
Hover, pressed, headers
Light variant#F6EBF9
Selected rows, tints
Dark surface#211424
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 #af4dcd

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#6BCD4D
Analogous left#6F4DCD
Analogous right#CD4DAB
Split-complement 1#ABCD4D
Split-complement 2#4DCD6F
Triadic 1#CDAF4D
Triadic 2#4DCDAF
Tetradic#CD6F4D

RGB percentages

Red68.6%
Green30.2%
Blue80.4%

CMYK percentages

Cyan14.6%
Magenta62.4%
Yellow0.0%
Key (black)19.6%

Color previews

#af4dcd text on a black background

contrast 4.77:1

Card sample

#af4dcd text on a white background

contrast 4.41:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4dcd

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.

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

#af4dcd, answered

What color is #af4dcd?

#af4dcd is a balanced vivid violet, closest to Medium Orchid (ΔE2000 3.2). It sits at 286° on the hue wheel with 56% saturation and 55% lightness, which reads as neutral.

What is the RGB value of #af4dcd?

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

Is #af4dcd a light or a dark color?

It is a mid-tone. Relative luminance is 0.1883 and perceived brightness is 52%, so black text on it reaches 4.77:1.

Should I use black or white text on #af4dcd?

Black. It scores 4.77:1 against #af4dcd, versus 4.41:1 for white — AA at any size.

What is the complementary color of #af4dcd?

#6BCD4D sits directly opposite on the wheel. Softer options are the split-complements #ABCD4D and #4DCD6F, which give the same contrast with far less vibration.

What colors go well with #af4dcd?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #64A428 as an accent and #531C64 for hover and pressed states. For a palette, the analogous pair #6F4DCD and #CD4DAB stays calm, while #6BCD4D is the loudest partner.

What is #af4dcd in CMYK for printing?

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

Is #af4dcd warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CD4DBC; nudged cooler, #804BCF.

Work with #af4dcd in the Color Lab