Skip to content

#aa4df0

a balanced, electric violet · cool · closest name: Medium Orchid

RGB
170, 77, 240
HSL
274°, 85%, 62%
CMYK
29, 68, 0, 6
Luminance
0.2015

At a glance

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

Hex
#aa4df0
Hue
274°
violet
Saturation
85%
electric
Lightness
62%
balanced
Brightness
94%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2015
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.03:1
Closest name
Medium Orchid
ΔE2000 6.2
Where it sits
Hue274° of 360°
Saturation85%
Lightness62%
Temperature
Warm ← → Cool64% 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#aa4df0
RGBrgb(170, 77, 240)
HSLhsl(274, 85%, 62%)
CMYKcmyk(29%, 68%, 0%, 6%)
LABlab(52.0 65.1 -66.5)
LCHlch(52.0 93.1 314.4)
OKLCHoklch(0.615 0.236 306.8)
Decimal11161072
Display P3color(display-p3 0.667 0.302 0.941)

Copy-ready code

/* CSS */
color: #aa4df0;
background-color: #aa4df0;
/* Tailwind (arbitrary) */
class="text-[#aa4df0] bg-[#aa4df0]"
/* SCSS */
$brand: #aa4df0;
/* SwiftUI */
Color(red: 0.667, green: 0.302, blue: 0.941)
/* Android */
Color.parseColor("#aa4df0")
/* Flutter */
Color(0xFFAA4DF0)
/* Python / OpenCV (BGR) */
(240, 77, 170)

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

Accessibility — WCAG contrast

Aa
#aa4df0 on white: 4.18:1
AA ✗ fail · AA-large · AAA
Aa
#aa4df0 on black: 5.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0079F5
deuteranopia · #1E7DEC
tritanopia · #9E7199

Color scale — 50 to 950

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

#F8F2FC
#F1E6FA
#E1C5F7
#CE97F6
#aa4df0
#9C30EE
#8913E2
#7210BC
#5B0D97
#440E6D
#2A0944
Base = 400Lightest = 50 · #F8F2FCDarkest = 950 · #2A0944
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F1E6FA;
  --brand-200: #E1C5F7;
  --brand-300: #CE97F6;
  --brand-400: #aa4df0;
  --brand-500: #9C30EE;
  --brand-600: #8913E2;
  --brand-700: #7210BC;
  --brand-800: #5B0D97;
  --brand-900: #440E6D;
  --brand-950: #2A0944;
  --brand: #aa4df0;
  --brand-ink: #000000;
}

Colors that work with #aa4df0

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#D9C0ED
Hairlines and dividers
Muted text#784B9B
Captions on the surface
Accent#86C00C
Second voice, not a rival
Dark variant#470A76
Hover, pressed, headers
Light variant#F4E7FD
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 #aa4df0

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#93F04D
Analogous left#594DF0
Analogous right#F04DE5
Split-complement 1#E5F04D
Split-complement 2#4DF059
Triadic 1#F0AA4D
Triadic 2#4DF0AA
Tetradic#F0594D

RGB percentages

Red66.7%
Green30.2%
Blue94.1%

CMYK percentages

Cyan29.2%
Magenta67.9%
Yellow0.0%
Key (black)5.9%

Color previews

#aa4df0 text on a black background

contrast 5.03:1

Card sample

#aa4df0 text on a white background

contrast 4.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(170, 77, 240, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(170, 77, 240, 0.45);
Border & gradient
Gradient panel
border: 3px solid #aa4df0;
background: linear-gradient(135deg, #aa4df0, #F04DCA);

Monochromatic scale

Palettes built from #aa4df0

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.

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

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

#aa4df0, answered

What color is #aa4df0?

#aa4df0 is a balanced electric violet, closest to Medium Orchid (ΔE2000 6.2). It sits at 274° on the hue wheel with 85% saturation and 62% lightness, which reads as cool.

What is the RGB value of #aa4df0?

rgb(170, 77, 240) — 170 red, 77 green and 240 blue out of 255, or 66.7% / 30.2% / 94.1% by channel.

Is #aa4df0 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2015 and perceived brightness is 54%, so black text on it reaches 5.03:1.

Should I use black or white text on #aa4df0?

Black. It scores 5.03:1 against #aa4df0, versus 4.18:1 for white — AA at any size.

What is the complementary color of #aa4df0?

#93F04D sits directly opposite on the wheel. Softer options are the split-complements #E5F04D and #4DF059, which give the same contrast with far less vibration.

What colors go well with #aa4df0?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #784B9B for secondary text, #86C00C as an accent and #470A76 for hover and pressed states. For a palette, the analogous pair #594DF0 and #F04DE5 stays calm, while #93F04D is the loudest partner.

What is #aa4df0 in CMYK for printing?

cmyk(29%, 68%, 0%, 6%). 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 #aa4df0 warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E64DF0; nudged cooler, #6D4BF2.

Work with #aa4df0 in the Color Lab