Skip to content

#ae7af2

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

RGB
174, 122, 242
HSL
266°, 82%, 71%
CMYK
28, 50, 0, 5
Luminance
0.2933

At a glance

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

Hex
#ae7af2
Hue
266°
violet
Saturation
82%
electric
Lightness
71%
light
Brightness
95%
HSV value
Perceived
61%
weighted brightness
Luminance
0.2933
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.87:1
Closest name
Medium Purple
ΔE2000 6.1
Where it sits
Hue266° of 360°
Saturation82%
Lightness71%
Temperature
Warm ← → Cool69% 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#ae7af2
RGBrgb(174, 122, 242)
HSLhsl(266, 82%, 71%)
CMYKcmyk(28%, 50%, 0%, 5%)
LABlab(61.1 43.9 -53.1)
LCHlch(61.1 68.9 309.6)
OKLCHoklch(0.682 0.176 302.0)
Decimal11434738
Display P3color(display-p3 0.682 0.478 0.949)

Copy-ready code

/* CSS */
color: #ae7af2;
background-color: #ae7af2;
/* Tailwind (arbitrary) */
class="text-[#ae7af2] bg-[#ae7af2]"
/* SCSS */
$brand: #ae7af2;
/* SwiftUI */
Color(red: 0.682, green: 0.478, blue: 0.949)
/* Android */
Color.parseColor("#ae7af2")
/* Flutter */
Color(0xFFAE7AF2)
/* Python / OpenCV (BGR) */
(242, 122, 174)

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 #ae7af2 · 6.87:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.06:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.87:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ae7af2 as text scores 3.06:1 on white and 6.87:1 on black.

Accessibility — WCAG contrast

Aa
#ae7af2 on white: 3.06:1
AA ✗ fail · AA-large · AAA
Aa
#ae7af2 on black: 6.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5392F6
deuteranopia · #6193EF
tritanopia · #A190AB

Color scale — 50 to 950

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

#F7F2FC
#EEE6FA
#DBC6F6
#C199F5
#ae7af2
#8333EB
#6D16DF
#5B12BA
#490F95
#370F6B
#220943
Base = 400Lightest = 50 · #F7F2FCDarkest = 950 · #220943
:root {
  --brand-50: #F7F2FC;
  --brand-100: #EEE6FA;
  --brand-200: #DBC6F6;
  --brand-300: #C199F5;
  --brand-400: #ae7af2;
  --brand-500: #8333EB;
  --brand-600: #6D16DF;
  --brand-700: #5B12BA;
  --brand-800: #490F95;
  --brand-900: #370F6B;
  --brand-950: #220943;
  --brand: #ae7af2;
  --brand-ink: #000000;
}

Colors that work with #ae7af2

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#D3C0ED
Hairlines and dividers
Muted text#6D4B9B
Captions on the surface
Accent#9EBE0E
Second voice, not a rival
Dark variant#390B74
Hover, pressed, headers
Light variant#F1E8FD
Selected rows, tints
Dark surface#1B1424
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 #ae7af2

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#BEF27A
Analogous left#7A82F2
Analogous right#EA7AF2
Split-complement 1#F2EA7A
Split-complement 2#82F27A
Triadic 1#F2AE7A
Triadic 2#7AF2AE
Tetradic#F27A82

RGB percentages

Red68.2%
Green47.8%
Blue94.9%

CMYK percentages

Cyan28.1%
Magenta49.6%
Yellow0.0%
Key (black)5.1%

Color previews

#ae7af2 text on a black background

contrast 6.87:1

Card sample

#ae7af2 text on a white background

contrast 3.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(174, 122, 242, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(174, 122, 242, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ae7af2;
background: linear-gradient(135deg, #ae7af2, #F27AE6);

Monochromatic scale

Palettes built from #ae7af2

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.

#ae7af2 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ae7af2, answered

What color is #ae7af2?

#ae7af2 is a light electric violet, closest to Medium Purple (ΔE2000 6.1). It sits at 266° on the hue wheel with 82% saturation and 71% lightness, which reads as cool.

What is the RGB value of #ae7af2?

rgb(174, 122, 242) — 174 red, 122 green and 242 blue out of 255, or 68.2% / 47.8% / 94.9% by channel.

Is #ae7af2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2933 and perceived brightness is 61%, so black text on it reaches 6.87:1.

Should I use black or white text on #ae7af2?

Black. It scores 6.87:1 against #ae7af2, versus 3.06:1 for white — AA at any size.

What is the complementary color of #ae7af2?

#BEF27A sits directly opposite on the wheel. Softer options are the split-complements #F2EA7A and #82F27A, which give the same contrast with far less vibration.

What colors go well with #ae7af2?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6D4B9B for secondary text, #9EBE0E as an accent and #390B74 for hover and pressed states. For a palette, the analogous pair #7A82F2 and #EA7AF2 stays calm, while #BEF27A is the loudest partner.

What is #ae7af2 in CMYK for printing?

cmyk(28%, 50%, 0%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #ae7af2 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DA7AF2; nudged cooler, #8179F3.

Work with #ae7af2 in the Color Lab