Skip to content

#af7be0

a light, vivid violet · cool · closest name: Medium Purple

RGB
175, 123, 224
HSL
271°, 62%, 68%
CMYK
22, 45, 0, 12
Luminance
0.2866

At a glance

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

Hex
#af7be0
Hue
271°
violet
Saturation
62%
vivid
Lightness
68%
light
Brightness
88%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2866
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.73:1
Closest name
Medium Purple
ΔE2000 6.3
Where it sits
Hue271° of 360°
Saturation62%
Lightness68%
Temperature
Warm ← → Cool66% 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#af7be0
RGBrgb(175, 123, 224)
HSLhsl(271, 62%, 68%)
CMYKcmyk(22%, 45%, 0%, 12%)
LABlab(60.5 39.4 -44.0)
LCHlch(60.5 59.0 311.8)
OKLCHoklch(0.675 0.153 306.5)
Decimal11500512
Display P3color(display-p3 0.686 0.482 0.878)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7be0 on white: 3.12:1
AA ✗ fail · AA-large · AAA
Aa
#af7be0 on black: 6.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6290E4
deuteranopia · #6F92DD
tritanopia · #A88CA3

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af7be0 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F4FB
#F0E8F7
#DECCF0
#C8A4EA
#af7be0
#9149D4
#7D2FC6
#6827A5
#531F84
#3E1A60
#27103C
Base = 400Lightest = 50 · #F7F4FBDarkest = 950 · #27103C
:root {
  --brand-50: #F7F4FB;
  --brand-100: #F0E8F7;
  --brand-200: #DECCF0;
  --brand-300: #C8A4EA;
  --brand-400: #af7be0;
  --brand-500: #9149D4;
  --brand-600: #7D2FC6;
  --brand-700: #6827A5;
  --brand-800: #531F84;
  --brand-900: #3E1A60;
  --brand-950: #27103C;
  --brand: #af7be0;
  --brand-ink: #000000;
}

Colors that work with #af7be0

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#F7F4FA
Tinted page background
Border#D7C0ED
Hairlines and dividers
Muted text#744B9B
Captions on the surface
Accent#86A923
Second voice, not a rival
Dark variant#411867
Hover, pressed, headers
Light variant#F2EAFA
Selected rows, tints
Dark surface#1C1424
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 #af7be0

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#ACE07B
Analogous left#7C7BE0
Analogous right#E07BDE
Split-complement 1#DEE07B
Split-complement 2#7BE07C
Triadic 1#E0AF7B
Triadic 2#7BE0AF
Tetradic#E07C7B

RGB percentages

Red68.6%
Green48.2%
Blue87.8%

CMYK percentages

Cyan21.9%
Magenta45.1%
Yellow0.0%
Key (black)12.2%

Color previews

#af7be0 text on a black background

contrast 6.73:1

Card sample

#af7be0 text on a white background

contrast 3.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7be0

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.

#af7be0 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
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#af7be0, answered

What color is #af7be0?

#af7be0 is a light vivid violet, closest to Medium Purple (ΔE2000 6.3). It sits at 271° on the hue wheel with 62% saturation and 68% lightness, which reads as cool.

What is the RGB value of #af7be0?

rgb(175, 123, 224) — 175 red, 123 green and 224 blue out of 255, or 68.6% / 48.2% / 87.8% by channel.

Is #af7be0 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2866 and perceived brightness is 60%, so black text on it reaches 6.73:1.

Should I use black or white text on #af7be0?

Black. It scores 6.73:1 against #af7be0, versus 3.12:1 for white — AA at any size.

What is the complementary color of #af7be0?

#ACE07B sits directly opposite on the wheel. Softer options are the split-complements #DEE07B and #7BE07C, which give the same contrast with far less vibration.

What colors go well with #af7be0?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #86A923 as an accent and #411867 for hover and pressed states. For a palette, the analogous pair #7C7BE0 and #E07BDE stays calm, while #ACE07B is the loudest partner.

What is #af7be0 in CMYK for printing?

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

Is #af7be0 warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D47BE0; nudged cooler, #8979E2.

Work with #af7be0 in the Color Lab