Skip to content

#ab89cd

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

RGB
171, 137, 205
HSL
270°, 41%, 67%
CMYK
17, 33, 0, 20
Luminance
0.3096

At a glance

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

Hex
#ab89cd
Hue
270°
violet
Saturation
41%
soft
Lightness
67%
light
Brightness
80%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3096
WCAG relative
Temperature
Cool
67/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
7.19:1
Closest name
Medium Purple
ΔE2000 10.1
Where it sits
Hue270° of 360°
Saturation41%
Lightness67%
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#ab89cd
RGBrgb(171, 137, 205)
HSLhsl(270, 41%, 67%)
CMYKcmyk(17%, 33%, 0%, 20%)
LABlab(62.5 26.0 -30.3)
LCHlch(62.5 39.9 310.7)
OKLCHoklch(0.687 0.104 306.7)
Decimal11241933
Display P3color(display-p3 0.671 0.537 0.804)

Copy-ready code

/* CSS */
color: #ab89cd;
background-color: #ab89cd;
/* Tailwind (arbitrary) */
class="text-[#ab89cd] bg-[#ab89cd]"
/* SCSS */
$brand: #ab89cd;
/* SwiftUI */
Color(red: 0.671, green: 0.537, blue: 0.804)
/* Android */
Color.parseColor("#ab89cd")
/* Flutter */
Color(0xFFAB89CD)
/* Python / OpenCV (BGR) */
(205, 137, 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 #ab89cd · 7.19:1
Use #000000AAA at every size.
Aa
White text · 2.92:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.19:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ab89cd as text scores 2.92:1 on white and 7.19:1 on black.

Accessibility — WCAG contrast

Aa
#ab89cd on white: 2.92:1
AA ✗ fail · AA-large · AAA
Aa
#ab89cd on black: 7.19:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7C96D0
deuteranopia · #8397CB
tritanopia · #A693A2

Color scale — 50 to 950

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

#F7F5FA
#F0EBF5
#DED2EA
#C7B0DE
#ab89cd
#8F61BC
#7A49AC
#663D8F
#523173
#3D2654
#261835
Base = 400Lightest = 50 · #F7F5FADarkest = 950 · #261835
:root {
  --brand-50: #F7F5FA;
  --brand-100: #F0EBF5;
  --brand-200: #DED2EA;
  --brand-300: #C7B0DE;
  --brand-400: #ab89cd;
  --brand-500: #8F61BC;
  --brand-600: #7A49AC;
  --brand-700: #663D8F;
  --brand-800: #523173;
  --brand-900: #3D2654;
  --brand-950: #261835;
  --brand: #ab89cd;
  --brand-ink: #000000;
}

Colors that work with #ab89cd

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#D6C6E7
Hairlines and dividers
Muted text#734B9B
Captions on the surface
Accent#7D9339
Second voice, not a rival
Dark variant#40265A
Hover, pressed, headers
Light variant#F2EDF7
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 #ab89cd

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#ABCD89
Analogous left#8989CD
Analogous right#CD89CD
Split-complement 1#CDCD89
Split-complement 2#89CD89
Triadic 1#CDAB89
Triadic 2#89CDAB
Tetradic#CD8989

RGB percentages

Red67.1%
Green53.7%
Blue80.4%

CMYK percentages

Cyan16.6%
Magenta33.2%
Yellow0.0%
Key (black)19.6%

Color previews

#ab89cd text on a black background

contrast 7.19:1

Card sample

#ab89cd text on a white background

contrast 2.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab89cd

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.

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

#ab89cd, answered

What color is #ab89cd?

#ab89cd is a light soft violet, closest to Medium Purple (ΔE2000 10.1). It sits at 270° on the hue wheel with 41% saturation and 67% lightness, which reads as cool.

What is the RGB value of #ab89cd?

rgb(171, 137, 205) — 171 red, 137 green and 205 blue out of 255, or 67.1% / 53.7% / 80.4% by channel.

Is #ab89cd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3096 and perceived brightness is 61%, so black text on it reaches 7.19:1.

Should I use black or white text on #ab89cd?

Black. It scores 7.19:1 against #ab89cd, versus 2.92:1 for white — AAA at any size.

What is the complementary color of #ab89cd?

#ABCD89 sits directly opposite on the wheel. Softer options are the split-complements #CDCD89 and #89CD89, which give the same contrast with far less vibration.

What colors go well with #ab89cd?

For interface work: #F7F4FA as the surface, #D6C6E7 for borders, #734B9B for secondary text, #7D9339 as an accent and #40265A for hover and pressed states. For a palette, the analogous pair #8989CD and #CD89CD stays calm, while #ABCD89 is the loudest partner.

What is #ab89cd in CMYK for printing?

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

Is #ab89cd 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 #C489CD; nudged cooler, #9187CF.

Work with #ab89cd in the Color Lab