Skip to content

#af6fc5

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

RGB
175, 111, 197
HSL
285°, 43%, 60%
CMYK
11, 44, 0, 23
Luminance
0.2451

At a glance

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

Hex
#af6fc5
Hue
285°
violet
Saturation
43%
soft
Lightness
60%
balanced
Brightness
77%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2451
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
5.90:1
Closest name
Medium Orchid
ΔE2000 6.5
Where it sits
Hue285° of 360°
Saturation43%
Lightness60%
Temperature
Warm ← → Cool58% 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#af6fc5
RGBrgb(175, 111, 197)
HSLhsl(285, 43%, 60%)
CMYKcmyk(11%, 44%, 0%, 23%)
LABlab(56.6 40.0 -34.9)
LCHlch(56.6 53.1 319.0)
OKLCHoklch(0.642 0.141 317.1)
Decimal11497413
Display P3color(display-p3 0.686 0.435 0.773)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6fc5 on white: 3.56:1
AA ✗ fail · AA-large · AAA
Aa
#af6fc5 on black: 5.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6084C8
deuteranopia · #728AC3
tritanopia · #AF7B91

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af6fc5 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
#F2EBF5
#E4D1EA
#D3AFDF
#BC87CF
#af6fc5
#9446AF
#7B3B91
#632F74
#492555
#2E1735
Base = 500Lightest = 50 · #F9F5FADarkest = 950 · #2E1735
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F2EBF5;
  --brand-200: #E4D1EA;
  --brand-300: #D3AFDF;
  --brand-400: #BC87CF;
  --brand-500: #af6fc5;
  --brand-600: #9446AF;
  --brand-700: #7B3B91;
  --brand-800: #632F74;
  --brand-900: #492555;
  --brand-950: #2E1735;
  --brand: #af6fc5;
  --brand-ink: #000000;
}

Colors that work with #af6fc5

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#DFC5E8
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#669537
Second voice, not a rival
Dark variant#4D255B
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 #af6fc5

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#85C56F
Analogous left#846FC5
Analogous right#C56FB0
Split-complement 1#B0C56F
Split-complement 2#6FC584
Triadic 1#C5AF6F
Triadic 2#6FC5AF
Tetradic#C5846F

RGB percentages

Red68.6%
Green43.5%
Blue77.3%

CMYK percentages

Cyan11.2%
Magenta43.7%
Yellow0.0%
Key (black)22.7%

Color previews

#af6fc5 text on a black background

contrast 5.90:1

Card sample

#af6fc5 text on a white background

contrast 3.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6fc5

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.

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

#af6fc5, answered

What color is #af6fc5?

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

What is the RGB value of #af6fc5?

rgb(175, 111, 197) — 175 red, 111 green and 197 blue out of 255, or 68.6% / 43.5% / 77.3% by channel.

Is #af6fc5 a light or a dark color?

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

Should I use black or white text on #af6fc5?

Black. It scores 5.90:1 against #af6fc5, versus 3.56:1 for white — AA at any size.

What is the complementary color of #af6fc5?

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

What colors go well with #af6fc5?

For interface work: #F9F4FA as the surface, #DFC5E8 for borders, #864B9B for secondary text, #669537 as an accent and #4D255B for hover and pressed states. For a palette, the analogous pair #846FC5 and #C56FB0 stays calm, while #85C56F is the loudest partner.

What is #af6fc5 in CMYK for printing?

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

Is #af6fc5 warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C56FBB; nudged cooler, #8F6DC7.

Work with #af6fc5 in the Color Lab