Skip to content

#af4ec7

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

RGB
175, 78, 199
HSL
288°, 52%, 54%
CMYK
12, 61, 0, 22
Luminance
0.1869

At a glance

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

Hex
#af4ec7
Hue
288°
violet
Saturation
52%
vivid
Lightness
54%
balanced
Brightness
78%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1869
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.74:1
Closest name
Medium Orchid
ΔE2000 3.3
Where it sits
Hue288° of 360°
Saturation52%
Lightness54%
Temperature
Warm ← → Cool57% 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#af4ec7
RGBrgb(175, 78, 199)
HSLhsl(288, 52%, 54%)
CMYKcmyk(12%, 61%, 0%, 22%)
LABlab(50.3 57.2 -45.9)
LCHlch(50.3 73.4 321.3)
OKLCHoklch(0.596 0.196 319.2)
Decimal11488967
Display P3color(display-p3 0.686 0.306 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4ec7 on white: 4.43:1
AA ✗ fail · AA-large · AAA
Aa
#af4ec7 on black: 4.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2F71CB
deuteranopia · #567BC4
tritanopia · #AF6283

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af4ec7 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
#F3EAF6
#E7CFED
#D8AAE4
#C57FD7
#af4ec7
#A13BBA
#86319B
#6B277C
#4F205A
#311439
Base = 500Lightest = 50 · #F9F4FADarkest = 950 · #311439
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F3EAF6;
  --brand-200: #E7CFED;
  --brand-300: #D8AAE4;
  --brand-400: #C57FD7;
  --brand-500: #af4ec7;
  --brand-600: #A13BBA;
  --brand-700: #86319B;
  --brand-800: #6B277C;
  --brand-900: #4F205A;
  --brand-950: #311439;
  --brand: #af4ec7;
  --brand-ink: #000000;
}

Colors that work with #af4ec7

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#E3C1EB
Hairlines and dividers
Muted text#8B4B9B
Captions on the surface
Accent#609F2D
Second voice, not a rival
Dark variant#541F61
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 #af4ec7

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#66C74E
Analogous left#724EC7
Analogous right#C74EA2
Split-complement 1#A2C74E
Split-complement 2#4EC772
Triadic 1#C7AF4E
Triadic 2#4EC7AF
Tetradic#C7724E

RGB percentages

Red68.6%
Green30.6%
Blue78.0%

CMYK percentages

Cyan12.1%
Magenta60.8%
Yellow0.0%
Key (black)22.0%

Color previews

#af4ec7 text on a black background

contrast 4.74:1

Card sample

#af4ec7 text on a white background

contrast 4.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4ec7

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.

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

#af4ec7, answered

What color is #af4ec7?

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

What is the RGB value of #af4ec7?

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

Is #af4ec7 a light or a dark color?

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

Should I use black or white text on #af4ec7?

Black. It scores 4.74:1 against #af4ec7, versus 4.43:1 for white — AA at any size.

What is the complementary color of #af4ec7?

#66C74E sits directly opposite on the wheel. Softer options are the split-complements #A2C74E and #4EC772, which give the same contrast with far less vibration.

What colors go well with #af4ec7?

For interface work: #F9F4FA as the surface, #E3C1EB for borders, #8B4B9B for secondary text, #609F2D as an accent and #541F61 for hover and pressed states. For a palette, the analogous pair #724EC7 and #C74EA2 stays calm, while #66C74E is the loudest partner.

What is #af4ec7 in CMYK for printing?

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

Is #af4ec7 warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C74EB3; nudged cooler, #824CC9.

Work with #af4ec7 in the Color Lab