Skip to content

#af4bc7

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

RGB
175, 75, 199
HSL
288°, 53%, 54%
CMYK
12, 62, 0, 22
Luminance
0.1827

At a glance

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

Hex
#af4bc7
Hue
288°
violet
Saturation
53%
vivid
Lightness
54%
balanced
Brightness
78%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1827
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.65:1
Closest name
Medium Orchid
ΔE2000 3.8
Where it sits
Hue288° of 360°
Saturation53%
Lightness54%
Temperature
Warm ← → Cool56% 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#af4bc7
RGBrgb(175, 75, 199)
HSLhsl(288, 53%, 54%)
CMYKcmyk(12%, 62%, 0%, 22%)
LABlab(49.8 58.6 -46.7)
LCHlch(49.8 74.9 321.4)
OKLCHoklch(0.593 0.200 319.4)
Decimal11488199
Display P3color(display-p3 0.686 0.294 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4bc7 on white: 4.51:1
AA ✓ pass · AA-large · AAA
Aa
#af4bc7 on black: 4.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2970CB
deuteranopia · #547AC4
tritanopia · #AF6082

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af4bc7 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
#F4E9F6
#E7CFED
#D9A9E4
#C67FD7
#af4bc7
#A23ABB
#87309C
#6C277C
#4F205B
#321439
Base = 500Lightest = 50 · #F9F4FADarkest = 950 · #321439
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F4E9F6;
  --brand-200: #E7CFED;
  --brand-300: #D9A9E4;
  --brand-400: #C67FD7;
  --brand-500: #af4bc7;
  --brand-600: #A23ABB;
  --brand-700: #87309C;
  --brand-800: #6C277C;
  --brand-900: #4F205B;
  --brand-950: #321439;
  --brand: #af4bc7;
  --brand-ink: #000000;
}

Colors that work with #af4bc7

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#E3C1EC
Hairlines and dividers
Muted text#8B4B9B
Captions on the surface
Accent#5FA02C
Second voice, not a rival
Dark variant#541E61
Hover, pressed, headers
Light variant#F6ECF9
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 #af4bc7

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links 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
  • 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#63C74B
Analogous left#714BC7
Analogous right#C74BA1
Split-complement 1#A1C74B
Split-complement 2#4BC771
Triadic 1#C7AF4B
Triadic 2#4BC7AF
Tetradic#C7714B

RGB percentages

Red68.6%
Green29.4%
Blue78.0%

CMYK percentages

Cyan12.1%
Magenta62.3%
Yellow0.0%
Key (black)22.0%

Color previews

#af4bc7 text on a black background

contrast 4.65:1

Card sample

#af4bc7 text on a white background

contrast 4.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4bc7

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.

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

#af4bc7, answered

What color is #af4bc7?

#af4bc7 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 3.8). It sits at 288° on the hue wheel with 53% saturation and 54% lightness, which reads as neutral.

What is the RGB value of #af4bc7?

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

Is #af4bc7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1827 and perceived brightness is 51%, so black text on it reaches 4.65:1.

Should I use black or white text on #af4bc7?

Black. It scores 4.65:1 against #af4bc7, versus 4.51:1 for white — AA at any size.

What is the complementary color of #af4bc7?

#63C74B sits directly opposite on the wheel. Softer options are the split-complements #A1C74B and #4BC771, which give the same contrast with far less vibration.

What colors go well with #af4bc7?

For interface work: #F9F4FA as the surface, #E3C1EC for borders, #8B4B9B for secondary text, #5FA02C as an accent and #541E61 for hover and pressed states. For a palette, the analogous pair #714BC7 and #C74BA1 stays calm, while #63C74B is the loudest partner.

What is #af4bc7 in CMYK for printing?

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

Is #af4bc7 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C74BB1; nudged cooler, #8149C9.

Work with #af4bc7 in the Color Lab