Skip to content

#aa5ff2

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

RGB
170, 95, 242
HSL
271°, 85%, 66%
CMYK
30, 61, 0, 5
Luminance
0.2314

At a glance

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

Hex
#aa5ff2
Hue
271°
violet
Saturation
85%
electric
Lightness
66%
light
Brightness
95%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2314
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.63:1
Closest name
Medium Purple
ΔE2000 6.3
Where it sits
Hue271° of 360°
Saturation85%
Lightness66%
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#aa5ff2
RGBrgb(170, 95, 242)
HSLhsl(271, 85%, 66%)
CMYKcmyk(30%, 61%, 0%, 5%)
LABlab(55.2 57.1 -62.5)
LCHlch(55.2 84.6 312.4)
OKLCHoklch(0.638 0.214 304.5)
Decimal11165682
Display P3color(display-p3 0.667 0.373 0.949)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa5ff2 on white: 3.73:1
AA ✗ fail · AA-large · AAA
Aa
#aa5ff2 on black: 5.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0082F7
deuteranopia · #3B84EF
tritanopia · #9D7DA0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #aa5ff2 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
#F0E5FA
#DEC5F7
#C897F7
#aa5ff2
#912FEE
#7C12E2
#680FBD
#530C97
#3E0D6D
#270844
Base = 400Lightest = 50 · #F7F2FCDarkest = 950 · #270844
:root {
  --brand-50: #F7F2FC;
  --brand-100: #F0E5FA;
  --brand-200: #DEC5F7;
  --brand-300: #C897F7;
  --brand-400: #aa5ff2;
  --brand-500: #912FEE;
  --brand-600: #7C12E2;
  --brand-700: #680FBD;
  --brand-800: #530C97;
  --brand-900: #3E0D6D;
  --brand-950: #270844;
  --brand: #aa5ff2;
  --brand-ink: #000000;
}

Colors that work with #aa5ff2

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#91C00C
Second voice, not a rival
Dark variant#410A76
Hover, pressed, headers
Light variant#F2E7FD
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 #aa5ff2

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#A7F25F
Analogous left#615FF2
Analogous right#F25FF1
Split-complement 1#F1F25F
Split-complement 2#5FF261
Triadic 1#F2AA5F
Triadic 2#5FF2AA
Tetradic#F2615F

RGB percentages

Red66.7%
Green37.3%
Blue94.9%

CMYK percentages

Cyan29.8%
Magenta60.7%
Yellow0.0%
Key (black)5.1%

Color previews

#aa5ff2 text on a black background

contrast 5.63:1

Card sample

#aa5ff2 text on a white background

contrast 3.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa5ff2

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.

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

#aa5ff2, answered

What color is #aa5ff2?

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

What is the RGB value of #aa5ff2?

rgb(170, 95, 242) — 170 red, 95 green and 242 blue out of 255, or 66.7% / 37.3% / 94.9% by channel.

Is #aa5ff2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2314 and perceived brightness is 56%, so black text on it reaches 5.63:1.

Should I use black or white text on #aa5ff2?

Black. It scores 5.63:1 against #aa5ff2, versus 3.73:1 for white — AA at any size.

What is the complementary color of #aa5ff2?

#A7F25F sits directly opposite on the wheel. Softer options are the split-complements #F1F25F and #5FF261, which give the same contrast with far less vibration.

What colors go well with #aa5ff2?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #91C00C as an accent and #410A76 for hover and pressed states. For a palette, the analogous pair #615FF2 and #F25FF1 stays calm, while #A7F25F is the loudest partner.

What is #aa5ff2 in CMYK for printing?

cmyk(30%, 61%, 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 #aa5ff2 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 #E05FF2; nudged cooler, #735DF4.

Work with #aa5ff2 in the Color Lab