Skip to content

#ab7adf

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

RGB
171, 122, 223
HSL
269°, 61%, 68%
CMYK
23, 45, 0, 13
Luminance
0.2790

At a glance

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

Hex
#ab7adf
Hue
269°
violet
Saturation
61%
vivid
Lightness
68%
light
Brightness
87%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2790
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.58:1
Closest name
Medium Purple
ΔE2000 5.5
Where it sits
Hue269° of 360°
Saturation61%
Lightness68%
Temperature
Warm ← → Cool67% 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#ab7adf
RGBrgb(171, 122, 223)
HSLhsl(269, 61%, 68%)
CMYKcmyk(23%, 45%, 0%, 13%)
LABlab(59.8 38.6 -44.5)
LCHlch(59.8 58.9 310.9)
OKLCHoklch(0.669 0.152 305.0)
Decimal11238111
Display P3color(display-p3 0.671 0.478 0.875)

Copy-ready code

/* CSS */
color: #ab7adf;
background-color: #ab7adf;
/* Tailwind (arbitrary) */
class="text-[#ab7adf] bg-[#ab7adf]"
/* SCSS */
$brand: #ab7adf;
/* SwiftUI */
Color(red: 0.671, green: 0.478, blue: 0.875)
/* Android */
Color.parseColor("#ab7adf")
/* Flutter */
Color(0xFFAB7ADF)
/* Python / OpenCV (BGR) */
(223, 122, 171)

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

Accessibility — WCAG contrast

Aa
#ab7adf on white: 3.19:1
AA ✗ fail · AA-large · AAA
Aa
#ab7adf on black: 6.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5F8FE3
deuteranopia · #6C90DC
tritanopia · #A38BA2

Color scale — 50 to 950

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

#F7F4FB
#EFE8F7
#DDCCF0
#C6A5E9
#ab7adf
#8D4AD3
#782FC5
#6428A4
#502084
#3C1B60
#26113C
Base = 400Lightest = 50 · #F7F4FBDarkest = 950 · #26113C
:root {
  --brand-50: #F7F4FB;
  --brand-100: #EFE8F7;
  --brand-200: #DDCCF0;
  --brand-300: #C6A5E9;
  --brand-400: #ab7adf;
  --brand-500: #8D4AD3;
  --brand-600: #782FC5;
  --brand-700: #6428A4;
  --brand-800: #502084;
  --brand-900: #3C1B60;
  --brand-950: #26113C;
  --brand: #ab7adf;
  --brand-ink: #000000;
}

Colors that work with #ab7adf

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#D6C0ED
Hairlines and dividers
Muted text#724B9B
Captions on the surface
Accent#89A824
Second voice, not a rival
Dark variant#3F1967
Hover, pressed, headers
Light variant#F2EAFA
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 #ab7adf

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#AEDF7A
Analogous left#7A7BDF
Analogous right#DD7ADF
Split-complement 1#DFDD7A
Split-complement 2#7BDF7A
Triadic 1#DFAB7A
Triadic 2#7ADFAB
Tetradic#DF7A7B

RGB percentages

Red67.1%
Green47.8%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta45.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ab7adf text on a black background

contrast 6.58:1

Card sample

#ab7adf text on a white background

contrast 3.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(171, 122, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 122, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab7adf;
background: linear-gradient(135deg, #ab7adf, #DF7AD0);

Monochromatic scale

Palettes built from #ab7adf

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.

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

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

#ab7adf, answered

What color is #ab7adf?

#ab7adf is a light vivid violet, closest to Medium Purple (ΔE2000 5.5). It sits at 269° on the hue wheel with 61% saturation and 68% lightness, which reads as cool.

What is the RGB value of #ab7adf?

rgb(171, 122, 223) — 171 red, 122 green and 223 blue out of 255, or 67.1% / 47.8% / 87.5% by channel.

Is #ab7adf a light or a dark color?

It is a mid-tone. Relative luminance is 0.2790 and perceived brightness is 60%, so black text on it reaches 6.58:1.

Should I use black or white text on #ab7adf?

Black. It scores 6.58:1 against #ab7adf, versus 3.19:1 for white — AA at any size.

What is the complementary color of #ab7adf?

#AEDF7A sits directly opposite on the wheel. Softer options are the split-complements #DFDD7A and #7BDF7A, which give the same contrast with far less vibration.

What colors go well with #ab7adf?

For interface work: #F7F4FA as the surface, #D6C0ED for borders, #724B9B for secondary text, #89A824 as an accent and #3F1967 for hover and pressed states. For a palette, the analogous pair #7A7BDF and #DD7ADF stays calm, while #AEDF7A is the loudest partner.

What is #ab7adf in CMYK for printing?

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

Is #ab7adf warm or cool?

Cool — it scores 67 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D07ADF; nudged cooler, #8578E1.

Work with #ab7adf in the Color Lab