Skip to content

#aa2afd

a balanced, electric violet · cool · closest name: Blue Violet

RGB
170, 42, 253
HSL
276°, 98%, 58%
CMYK
33, 83, 0, 1
Luminance
0.1729

At a glance

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

Hex
#aa2afd
Hue
276°
violet
Saturation
98%
electric
Lightness
58%
balanced
Brightness
99%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1729
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.71:1
Closest name
Blue Violet
ΔE2000 6.6
Where it sits
Hue276° of 360°
Saturation98%
Lightness58%
Temperature
Warm ← → Cool63% 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#aa2afd
RGBrgb(170, 42, 253)
HSLhsl(276, 98%, 58%)
CMYKcmyk(33%, 83%, 0%, 1%)
LABlab(48.6 80.3 -79.3)
LCHlch(48.6 112.8 315.4)
OKLCHoklch(0.594 0.281 306.4)
Decimal11152125
Display P3color(display-p3 0.667 0.165 0.992)

Copy-ready code

/* CSS */
color: #aa2afd;
background-color: #aa2afd;
/* Tailwind (arbitrary) */
class="text-[#aa2afd] bg-[#aa2afd]"
/* SCSS */
$brand: #aa2afd;
/* SwiftUI */
Color(red: 0.667, green: 0.165, blue: 0.992)
/* Android */
Color.parseColor("#aa2afd")
/* Flutter */
Color(0xFFAA2AFD)
/* Python / OpenCV (BGR) */
(253, 42, 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#ffffff on #aa2afd · 4.71:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.71:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.46:1
AA fail · AA large pass · AAA fail
Reading the other direction: #aa2afd as text scores 4.71:1 on white and 4.46:1 on black.

Accessibility — WCAG contrast

Aa
#aa2afd on white: 4.71:1
AA ✓ pass · AA-large · AAA
Aa
#aa2afd on black: 4.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0070FF
deuteranopia · #0074F9
tritanopia · #9B6799

Color scale — 50 to 950

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

#F9F1FD
#F2E3FC
#E4C1FB
#D390FE
#BC58FD
#aa2afd
#9402F2
#7B02CA
#6302A2
#490674
#2E0449
Base = 500Lightest = 50 · #F9F1FDDarkest = 950 · #2E0449
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F2E3FC;
  --brand-200: #E4C1FB;
  --brand-300: #D390FE;
  --brand-400: #BC58FD;
  --brand-500: #aa2afd;
  --brand-600: #9402F2;
  --brand-700: #7B02CA;
  --brand-800: #6302A2;
  --brand-900: #490674;
  --brand-950: #2E0449;
  --brand: #aa2afd;
  --brand-ink: #ffffff;
}

Colors that work with #aa2afd

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F8F4FA
Tinted page background
Border#DBC0ED
Hairlines and dividers
Muted text#7B4B9B
Captions on the surface
Accent#83CC00
Second voice, not a rival
Dark variant#4D017E
Hover, pressed, headers
Light variant#F5E6FF
Selected rows, tints
Dark surface#1E1424
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 #aa2afd

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#7DFD2A
Analogous left#402AFD
Analogous right#FD2AE6
Split-complement 1#E6FD2A
Split-complement 2#2AFD40
Triadic 1#FDAA2A
Triadic 2#2AFDAA
Tetradic#FD402A

RGB percentages

Red66.7%
Green16.5%
Blue99.2%

CMYK percentages

Cyan32.8%
Magenta83.4%
Yellow0.0%
Key (black)0.8%

Color previews

#aa2afd text on a black background

contrast 4.46:1

Card sample

#aa2afd text on a white background

contrast 4.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa2afd

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.

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

#aa2afd, answered

What color is #aa2afd?

#aa2afd is a balanced electric violet, closest to Blue Violet (ΔE2000 6.6). It sits at 276° on the hue wheel with 98% saturation and 58% lightness, which reads as cool.

What is the RGB value of #aa2afd?

rgb(170, 42, 253) — 170 red, 42 green and 253 blue out of 255, or 66.7% / 16.5% / 99.2% by channel.

Is #aa2afd a light or a dark color?

It is a dark color. Relative luminance is 0.1729 and perceived brightness is 51%, so white text on it reaches 4.71:1.

Should I use black or white text on #aa2afd?

White. It scores 4.71:1 against #aa2afd, versus 4.46:1 for black — AA at any size.

What is the complementary color of #aa2afd?

#7DFD2A sits directly opposite on the wheel. Softer options are the split-complements #E6FD2A and #2AFD40, which give the same contrast with far less vibration.

What colors go well with #aa2afd?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7B4B9B for secondary text, #83CC00 as an accent and #4D017E for hover and pressed states. For a palette, the analogous pair #402AFD and #FD2AE6 stays calm, while #7DFD2A is the loudest partner.

What is #aa2afd in CMYK for printing?

cmyk(33%, 83%, 0%, 1%). 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 #aa2afd warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F72AFD; nudged cooler, #5B28FF.

Work with #aa2afd in the Color Lab