Skip to content

#aa7eb7

a balanced, soft violet · neutral · closest name: Orchid

RGB
170, 126, 183
HSL
286°, 28%, 61%
CMYK
7, 31, 0, 28
Luminance
0.2689

At a glance

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

Hex
#aa7eb7
Hue
286°
violet
Saturation
28%
soft
Lightness
61%
balanced
Brightness
72%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2689
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.38:1
Closest name
Orchid
ΔE2000 10.3
Where it sits
Hue286° of 360°
Saturation28%
Lightness61%
Temperature
Warm ← → Cool56% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#aa7eb7
RGBrgb(170, 126, 183)
HSLhsl(286, 28%, 61%)
CMYKcmyk(7%, 31%, 0%, 28%)
LABlab(58.9 27.2 -23.4)
LCHlch(58.9 35.9 319.3)
OKLCHoklch(0.656 0.096 318.4)
Decimal11173559
Display P3color(display-p3 0.667 0.494 0.718)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#aa7eb7 on white: 3.29:1
AA ✗ fail · AA-large · AAA
Aa
#aa7eb7 on black: 6.38:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #778BB9
deuteranopia · #818FB5
tritanopia · #AA8493

Color scale — 50 to 950

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

#F8F6F9
#F2ECF3
#E2D6E6
#D0B7D7
#B893C3
#aa7eb7
#8D589D
#764983
#5E3A69
#462D4D
#2C1C30
Base = 500Lightest = 50 · #F8F6F9Darkest = 950 · #2C1C30
:root {
  --brand-50: #F8F6F9;
  --brand-100: #F2ECF3;
  --brand-200: #E2D6E6;
  --brand-300: #D0B7D7;
  --brand-400: #B893C3;
  --brand-500: #aa7eb7;
  --brand-600: #8D589D;
  --brand-700: #764983;
  --brand-800: #5E3A69;
  --brand-900: #462D4D;
  --brand-950: #2C1C30;
  --brand: #aa7eb7;
  --brand-ink: #000000;
}

Colors that work with #aa7eb7

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#F9F5FA
Tinted page background
Border#DCCBE2
Hairlines and dividers
Muted text#845293
Captions on the surface
Accent#648745
Second voice, not a rival
Dark variant#4A2E52
Hover, pressed, headers
Light variant#F4EFF6
Selected rows, tints
Dark surface#201424
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 #aa7eb7

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#8BB77E
Analogous left#8D7EB7
Analogous right#B77EA8
Split-complement 1#A8B77E
Split-complement 2#7EB78D
Triadic 1#B7AA7E
Triadic 2#7EB7AA
Tetradic#B78D7E

RGB percentages

Red66.7%
Green49.4%
Blue71.8%

CMYK percentages

Cyan7.1%
Magenta31.1%
Yellow0.0%
Key (black)28.2%

Color previews

#aa7eb7 text on a black background

contrast 6.38:1

Card sample

#aa7eb7 text on a white background

contrast 3.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #aa7eb7

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.

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

Converts to four-color process without much drama. Proof it anyway.

#aa7eb7, answered

What color is #aa7eb7?

#aa7eb7 is a balanced soft violet, closest to Orchid (ΔE2000 10.3). It sits at 286° on the hue wheel with 28% saturation and 61% lightness, which reads as neutral.

What is the RGB value of #aa7eb7?

rgb(170, 126, 183) — 170 red, 126 green and 183 blue out of 255, or 66.7% / 49.4% / 71.8% by channel.

Is #aa7eb7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2689 and perceived brightness is 58%, so black text on it reaches 6.38:1.

Should I use black or white text on #aa7eb7?

Black. It scores 6.38:1 against #aa7eb7, versus 3.29:1 for white — AA at any size.

What is the complementary color of #aa7eb7?

#8BB77E sits directly opposite on the wheel. Softer options are the split-complements #A8B77E and #7EB78D, which give the same contrast with far less vibration.

What colors go well with #aa7eb7?

For interface work: #F9F5FA as the surface, #DCCBE2 for borders, #845293 for secondary text, #648745 as an accent and #4A2E52 for hover and pressed states. For a palette, the analogous pair #8D7EB7 and #B77EA8 stays calm, while #8BB77E is the loudest partner.

What is #aa7eb7 in CMYK for printing?

cmyk(7%, 31%, 0%, 28%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #aa7eb7 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B77EAF; nudged cooler, #957CB9.

Work with #aa7eb7 in the Color Lab