Skip to content

#af6dc7

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

RGB
175, 109, 199
HSL
284°, 45%, 60%
CMYK
12, 45, 0, 22
Luminance
0.2417

At a glance

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

Hex
#af6dc7
Hue
284°
violet
Saturation
45%
soft
Lightness
60%
balanced
Brightness
78%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2417
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
5.83:1
Closest name
Medium Orchid
ΔE2000 5.9
Where it sits
Hue284° of 360°
Saturation45%
Lightness60%
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#af6dc7
RGBrgb(175, 109, 199)
HSLhsl(284, 45%, 60%)
CMYKcmyk(12%, 45%, 0%, 22%)
LABlab(56.3 41.5 -36.5)
LCHlch(56.3 55.3 318.7)
OKLCHoklch(0.640 0.147 316.5)
Decimal11496903
Display P3color(display-p3 0.686 0.427 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6dc7 on white: 3.60:1
AA ✗ fail · AA-large · AAA
Aa
#af6dc7 on black: 5.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5D83CA
deuteranopia · #6F89C4
tritanopia · #AE7A91

Color scale — 50 to 950

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

#F9F5FA
#F2EAF5
#E4D1EB
#D3AEE0
#BC85D0
#af6dc7
#9444B1
#7B3993
#632D76
#492456
#2E1736
Base = 500Lightest = 50 · #F9F5FADarkest = 950 · #2E1736
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F2EAF5;
  --brand-200: #E4D1EB;
  --brand-300: #D3AEE0;
  --brand-400: #BC85D0;
  --brand-500: #af6dc7;
  --brand-600: #9444B1;
  --brand-700: #7B3993;
  --brand-800: #632D76;
  --brand-900: #492456;
  --brand-950: #2E1736;
  --brand: #af6dc7;
  --brand-ink: #000000;
}

Colors that work with #af6dc7

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#DFC4E8
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#689735
Second voice, not a rival
Dark variant#4D235C
Hover, pressed, headers
Light variant#F5EDF8
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 #af6dc7

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#85C76D
Analogous left#826DC7
Analogous right#C76DB2
Split-complement 1#B2C76D
Split-complement 2#6DC782
Triadic 1#C7AF6D
Triadic 2#6DC7AF
Tetradic#C7826D

RGB percentages

Red68.6%
Green42.7%
Blue78.0%

CMYK percentages

Cyan12.1%
Magenta45.2%
Yellow0.0%
Key (black)22.0%

Color previews

#af6dc7 text on a black background

contrast 5.83:1

Card sample

#af6dc7 text on a white background

contrast 3.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6dc7

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.

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

#af6dc7, answered

What color is #af6dc7?

#af6dc7 is a balanced soft violet, closest to Medium Orchid (ΔE2000 5.9). It sits at 284° on the hue wheel with 45% saturation and 60% lightness, which reads as cool.

What is the RGB value of #af6dc7?

rgb(175, 109, 199) — 175 red, 109 green and 199 blue out of 255, or 68.6% / 42.7% / 78% by channel.

Is #af6dc7 a light or a dark color?

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

Should I use black or white text on #af6dc7?

Black. It scores 5.83:1 against #af6dc7, versus 3.60:1 for white — AA at any size.

What is the complementary color of #af6dc7?

#85C76D sits directly opposite on the wheel. Softer options are the split-complements #B2C76D and #6DC782, which give the same contrast with far less vibration.

What colors go well with #af6dc7?

For interface work: #F9F4FA as the surface, #DFC4E8 for borders, #854B9B for secondary text, #689735 as an accent and #4D235C for hover and pressed states. For a palette, the analogous pair #826DC7 and #C76DB2 stays calm, while #85C76D is the loudest partner.

What is #af6dc7 in CMYK for printing?

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

Is #af6dc7 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 #C76DBE; nudged cooler, #8D6BC9.

Work with #af6dc7 in the Color Lab