Skip to content

#af6ee7

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

RGB
175, 110, 231
HSL
272°, 72%, 67%
CMYK
24, 52, 0, 9
Luminance
0.2604

At a glance

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

Hex
#af6ee7
Hue
272°
violet
Saturation
72%
vivid
Lightness
67%
light
Brightness
91%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2604
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.21:1
Closest name
Medium Purple
ΔE2000 5.5
Where it sits
Hue272° of 360°
Saturation72%
Lightness67%
Temperature
Warm ← → Cool65% 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#af6ee7
RGBrgb(175, 110, 231)
HSLhsl(272, 72%, 67%)
CMYKcmyk(24%, 52%, 0%, 9%)
LABlab(58.1 48.0 -51.7)
LCHlch(58.1 70.6 312.9)
OKLCHoklch(0.659 0.182 306.9)
Decimal11497191
Display P3color(display-p3 0.686 0.431 0.906)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6ee7 on white: 3.38:1
AA ✗ fail · AA-large · AAA
Aa
#af6ee7 on black: 6.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4889EB
deuteranopia · #5D8CE4
tritanopia · #A684A0

Color scale — 50 to 950

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

#F8F3FC
#F0E7F8
#DFC9F3
#CA9FEF
#af6ee7
#953EDF
#8123D2
#6B1DAF
#56178C
#401566
#280D3F
Base = 400Lightest = 50 · #F8F3FCDarkest = 950 · #280D3F
:root {
  --brand-50: #F8F3FC;
  --brand-100: #F0E7F8;
  --brand-200: #DFC9F3;
  --brand-300: #CA9FEF;
  --brand-400: #af6ee7;
  --brand-500: #953EDF;
  --brand-600: #8123D2;
  --brand-700: #6B1DAF;
  --brand-800: #56178C;
  --brand-900: #401566;
  --brand-950: #280D3F;
  --brand: #af6ee7;
  --brand-ink: #000000;
}

Colors that work with #af6ee7

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#F8F4FA
Tinted page background
Border#D8C0ED
Hairlines and dividers
Muted text#764B9B
Captions on the surface
Accent#87B319
Second voice, not a rival
Dark variant#43126D
Hover, pressed, headers
Light variant#F3E9FB
Selected rows, tints
Dark surface#1D1424
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 #af6ee7

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#A6E76E
Analogous left#736EE7
Analogous right#E76EE3
Split-complement 1#E3E76E
Split-complement 2#6EE773
Triadic 1#E7AF6E
Triadic 2#6EE7AF
Tetradic#E7736E

RGB percentages

Red68.6%
Green43.1%
Blue90.6%

CMYK percentages

Cyan24.2%
Magenta52.4%
Yellow0.0%
Key (black)9.4%

Color previews

#af6ee7 text on a black background

contrast 6.21:1

Card sample

#af6ee7 text on a white background

contrast 3.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6ee7

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.

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

#af6ee7, answered

What color is #af6ee7?

#af6ee7 is a light vivid violet, closest to Medium Purple (ΔE2000 5.5). It sits at 272° on the hue wheel with 72% saturation and 67% lightness, which reads as cool.

What is the RGB value of #af6ee7?

rgb(175, 110, 231) — 175 red, 110 green and 231 blue out of 255, or 68.6% / 43.1% / 90.6% by channel.

Is #af6ee7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2604 and perceived brightness is 59%, so black text on it reaches 6.21:1.

Should I use black or white text on #af6ee7?

Black. It scores 6.21:1 against #af6ee7, versus 3.38:1 for white — AA at any size.

What is the complementary color of #af6ee7?

#A6E76E sits directly opposite on the wheel. Softer options are the split-complements #E3E76E and #6EE773, which give the same contrast with far less vibration.

What colors go well with #af6ee7?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #764B9B for secondary text, #87B319 as an accent and #43126D for hover and pressed states. For a palette, the analogous pair #736EE7 and #E76EE3 stays calm, while #A6E76E is the loudest partner.

What is #af6ee7 in CMYK for printing?

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

Is #af6ee7 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DB6EE7; nudged cooler, #826CE9.

Work with #af6ee7 in the Color Lab