Skip to content

#aa5ef1

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

RGB
170, 94, 241
HSL
271°, 84%, 66%
CMYK
30, 61, 0, 6
Luminance
0.2290

At a glance

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

Hex
#aa5ef1
Hue
271°
violet
Saturation
84%
electric
Lightness
66%
light
Brightness
95%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2290
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.58:1
Closest name
Medium Orchid
ΔE2000 6.3
Where it sits
Hue271° of 360°
Saturation84%
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#aa5ef1
RGBrgb(170, 94, 241)
HSLhsl(271, 84%, 66%)
CMYKcmyk(30%, 61%, 0%, 6%)
LABlab(55.0 57.4 -62.3)
LCHlch(55.0 84.7 312.6)
OKLCHoklch(0.636 0.215 304.8)
Decimal11165425
Display P3color(display-p3 0.667 0.369 0.945)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa5ef1 on white: 3.76:1
AA ✗ fail · AA-large · AAA
Aa
#aa5ef1 on black: 5.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0081F6
deuteranopia · #3B84EE
tritanopia · #9D7C9F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #aa5ef1 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
#F0E6FA
#DFC5F6
#C898F6
#aa5ef1
#9231ED
#7E14E1
#6910BC
#540D96
#3F0E6C
#270944
Base = 400Lightest = 50 · #F8F2FCDarkest = 950 · #270944
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F0E6FA;
  --brand-200: #DFC5F6;
  --brand-300: #C898F6;
  --brand-400: #aa5ef1;
  --brand-500: #9231ED;
  --brand-600: #7E14E1;
  --brand-700: #6910BC;
  --brand-800: #540D96;
  --brand-900: #3F0E6C;
  --brand-950: #270944;
  --brand: #aa5ef1;
  --brand-ink: #000000;
}

Colors that work with #aa5ef1

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#8FC00C
Second voice, not a rival
Dark variant#420A75
Hover, pressed, headers
Light variant#F3E8FD
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 #aa5ef1

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#A5F15E
Analogous left#615EF1
Analogous right#F15EEF
Split-complement 1#EFF15E
Split-complement 2#5EF161
Triadic 1#F1AA5E
Triadic 2#5EF1AA
Tetradic#F1615E

RGB percentages

Red66.7%
Green36.9%
Blue94.5%

CMYK percentages

Cyan29.5%
Magenta61.0%
Yellow0.0%
Key (black)5.5%

Color previews

#aa5ef1 text on a black background

contrast 5.58:1

Card sample

#aa5ef1 text on a white background

contrast 3.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa5ef1

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.

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

#aa5ef1, answered

What color is #aa5ef1?

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

What is the RGB value of #aa5ef1?

rgb(170, 94, 241) — 170 red, 94 green and 241 blue out of 255, or 66.7% / 36.9% / 94.5% by channel.

Is #aa5ef1 a light or a dark color?

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

Should I use black or white text on #aa5ef1?

Black. It scores 5.58:1 against #aa5ef1, versus 3.76:1 for white — AA at any size.

What is the complementary color of #aa5ef1?

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

What colors go well with #aa5ef1?

For interface work: #F7F4FA as the surface, #D7C0ED for borders, #744B9B for secondary text, #8FC00C as an accent and #420A75 for hover and pressed states. For a palette, the analogous pair #615EF1 and #F15EEF stays calm, while #A5F15E is the loudest partner.

What is #aa5ef1 in CMYK for printing?

cmyk(30%, 61%, 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 #aa5ef1 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 #E05EF1; nudged cooler, #735CF3.

Work with #aa5ef1 in the Color Lab