Skip to content

#ab6bbc

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

RGB
171, 107, 188
HSL
287°, 38%, 58%
CMYK
9, 43, 0, 26
Luminance
0.2280

At a glance

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

Hex
#ab6bbc
Hue
287°
violet
Saturation
38%
soft
Lightness
58%
balanced
Brightness
74%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2280
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
5.56:1
Closest name
Medium Orchid
ΔE2000 6.6
Where it sits
Hue287° of 360°
Saturation38%
Lightness58%
Temperature
Warm ← → Cool57% 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#ab6bbc
RGBrgb(171, 107, 188)
HSLhsl(287, 38%, 58%)
CMYKcmyk(9%, 43%, 0%, 26%)
LABlab(54.9 39.2 -32.5)
LCHlch(54.9 50.9 320.4)
OKLCHoklch(0.627 0.136 319.0)
Decimal11234236
Display P3color(display-p3 0.671 0.420 0.737)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab6bbc on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#ab6bbc on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5F7FBF
deuteranopia · #7086BA
tritanopia · #AC758B

Color scale — 50 to 950

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

#F9F5FA
#F2EBF4
#E4D3E9
#D3B2DC
#BD8BCB
#ab6bbc
#954CA9
#7C408C
#633370
#4A2852
#2E1934
Base = 500Lightest = 50 · #F9F5FADarkest = 950 · #2E1934
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F2EBF4;
  --brand-200: #E4D3E9;
  --brand-300: #D3B2DC;
  --brand-400: #BD8BCB;
  --brand-500: #ab6bbc;
  --brand-600: #954CA9;
  --brand-700: #7C408C;
  --brand-800: #633370;
  --brand-900: #4A2852;
  --brand-950: #2E1934;
  --brand: #ab6bbc;
  --brand-ink: #000000;
}

Colors that work with #ab6bbc

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#F9F4FA
Tinted page background
Border#DFC7E6
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#63903C
Second voice, not a rival
Dark variant#4E2858
Hover, pressed, headers
Light variant#F5EDF7
Selected rows, tints
Dark surface#211424
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 #ab6bbc

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#7CBC6B
Analogous left#826BBC
Analogous right#BC6BA4
Split-complement 1#A4BC6B
Split-complement 2#6BBC82
Triadic 1#BCAB6B
Triadic 2#6BBCAB
Tetradic#BC826B

RGB percentages

Red67.1%
Green42.0%
Blue73.7%

CMYK percentages

Cyan9.0%
Magenta43.1%
Yellow0.0%
Key (black)26.3%

Color previews

#ab6bbc text on a black background

contrast 5.56:1

Card sample

#ab6bbc text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab6bbc

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.

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

#ab6bbc, answered

What color is #ab6bbc?

#ab6bbc is a balanced soft violet, closest to Medium Orchid (ΔE2000 6.6). It sits at 287° on the hue wheel with 38% saturation and 58% lightness, which reads as neutral.

What is the RGB value of #ab6bbc?

rgb(171, 107, 188) — 171 red, 107 green and 188 blue out of 255, or 67.1% / 42% / 73.7% by channel.

Is #ab6bbc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2280 and perceived brightness is 55%, so black text on it reaches 5.56:1.

Should I use black or white text on #ab6bbc?

Black. It scores 5.56:1 against #ab6bbc, versus 3.78:1 for white — AA at any size.

What is the complementary color of #ab6bbc?

#7CBC6B sits directly opposite on the wheel. Softer options are the split-complements #A4BC6B and #6BBC82, which give the same contrast with far less vibration.

What colors go well with #ab6bbc?

For interface work: #F9F4FA as the surface, #DFC7E6 for borders, #8A4B9B for secondary text, #63903C as an accent and #4E2858 for hover and pressed states. For a palette, the analogous pair #826BBC and #BC6BA4 stays calm, while #7CBC6B is the loudest partner.

What is #ab6bbc in CMYK for printing?

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

Is #ab6bbc warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BC6BAF; nudged cooler, #8D69BE.

Work with #ab6bbc in the Color Lab