Skip to content

#ab8cd2

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

RGB
171, 140, 210
HSL
267°, 44%, 69%
CMYK
19, 33, 0, 18
Luminance
0.3207

At a glance

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

Hex
#ab8cd2
Hue
267°
violet
Saturation
44%
soft
Lightness
69%
light
Brightness
82%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3207
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
7.41:1
Closest name
Medium Purple
ΔE2000 10.2
Where it sits
Hue267° of 360°
Saturation44%
Lightness69%
Temperature
Warm ← → Cool69% 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#ab8cd2
RGBrgb(171, 140, 210)
HSLhsl(267, 44%, 69%)
CMYKcmyk(19%, 33%, 0%, 18%)
LABlab(63.4 25.5 -31.6)
LCHlch(63.4 40.6 308.8)
OKLCHoklch(0.695 0.105 304.1)
Decimal11242706
Display P3color(display-p3 0.671 0.549 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab8cd2 on white: 2.83:1
AA ✗ fail · AA-large · AAA
Aa
#ab8cd2 on black: 7.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7D99D5
deuteranopia · #839AD0
tritanopia · #A597A6

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ab8cd2 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
#EFEAF5
#DCD1EB
#C4AEDF
#ab8cd2
#895EC0
#7445B0
#613993
#4E2E75
#3A2556
#251736
Base = 400Lightest = 50 · #F7F5FADarkest = 950 · #251736
:root {
  --brand-50: #F7F5FA;
  --brand-100: #EFEAF5;
  --brand-200: #DCD1EB;
  --brand-300: #C4AEDF;
  --brand-400: #ab8cd2;
  --brand-500: #895EC0;
  --brand-600: #7445B0;
  --brand-700: #613993;
  --brand-800: #4E2E75;
  --brand-900: #3A2556;
  --brand-950: #251736;
  --brand: #ab8cd2;
  --brand-ink: #000000;
}

Colors that work with #ab8cd2

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#D4C4E8
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#839636
Second voice, not a rival
Dark variant#3D245C
Hover, pressed, headers
Light variant#F2EDF8
Selected rows, tints
Dark surface#1B1424
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 #ab8cd2

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#B3D28C
Analogous left#8C90D2
Analogous right#CE8CD2
Split-complement 1#D2CE8C
Split-complement 2#90D28C
Triadic 1#D2AB8C
Triadic 2#8CD2AB
Tetradic#D28C90

RGB percentages

Red67.1%
Green54.9%
Blue82.4%

CMYK percentages

Cyan18.6%
Magenta33.3%
Yellow0.0%
Key (black)17.6%

Color previews

#ab8cd2 text on a black background

contrast 7.41:1

Card sample

#ab8cd2 text on a white background

contrast 2.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab8cd2

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.

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

#ab8cd2, answered

What color is #ab8cd2?

#ab8cd2 is a light soft violet, closest to Medium Purple (ΔE2000 10.2). It sits at 267° on the hue wheel with 44% saturation and 69% lightness, which reads as cool.

What is the RGB value of #ab8cd2?

rgb(171, 140, 210) — 171 red, 140 green and 210 blue out of 255, or 67.1% / 54.9% / 82.4% by channel.

Is #ab8cd2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3207 and perceived brightness is 62%, so black text on it reaches 7.41:1.

Should I use black or white text on #ab8cd2?

Black. It scores 7.41:1 against #ab8cd2, versus 2.83:1 for white — AAA at any size.

What is the complementary color of #ab8cd2?

#B3D28C sits directly opposite on the wheel. Softer options are the split-complements #D2CE8C and #90D28C, which give the same contrast with far less vibration.

What colors go well with #ab8cd2?

For interface work: #F7F4FA as the surface, #D4C4E8 for borders, #6E4B9B for secondary text, #839636 as an accent and #3D245C for hover and pressed states. For a palette, the analogous pair #8C90D2 and #CE8CD2 stays calm, while #B3D28C is the loudest partner.

What is #ab8cd2 in CMYK for printing?

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

Is #ab8cd2 warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C58CD2; nudged cooler, #908AD4.

Work with #ab8cd2 in the Color Lab