Skip to content

#ab7cbf

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

RGB
171, 124, 191
HSL
282°, 34%, 62%
CMYK
11, 35, 0, 25
Luminance
0.2683

At a glance

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

Hex
#ab7cbf
Hue
282°
violet
Saturation
34%
soft
Lightness
62%
balanced
Brightness
75%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2683
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.37:1
Closest name
Orchid
ΔE2000 9.3
Where it sits
Hue282° of 360°
Saturation34%
Lightness62%
Temperature
Warm ← → Cool60% 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#ab7cbf
RGBrgb(171, 124, 191)
HSLhsl(282, 34%, 62%)
CMYKcmyk(11%, 35%, 0%, 25%)
LABlab(58.8 30.3 -28.0)
LCHlch(58.8 41.3 317.3)
OKLCHoklch(0.657 0.110 315.5)
Decimal11238591
Display P3color(display-p3 0.671 0.486 0.749)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab7cbf on white: 3.30:1
AA ✗ fail · AA-large · AAA
Aa
#ab7cbf on black: 6.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #728BC2
deuteranopia · #7D8FBD
tritanopia · #AA8495

Color scale — 50 to 950

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

#F8F5F9
#F1ECF4
#E2D4E8
#CFB4DA
#ab7cbf
#9E68B5
#8B50A5
#744389
#5D366E
#452A51
#2B1A32
Base = 400Lightest = 50 · #F8F5F9Darkest = 950 · #2B1A32
:root {
  --brand-50: #F8F5F9;
  --brand-100: #F1ECF4;
  --brand-200: #E2D4E8;
  --brand-300: #CFB4DA;
  --brand-400: #ab7cbf;
  --brand-500: #9E68B5;
  --brand-600: #8B50A5;
  --brand-700: #744389;
  --brand-800: #5D366E;
  --brand-900: #452A51;
  --brand-950: #2B1A32;
  --brand: #ab7cbf;
  --brand-ink: #000000;
}

Colors that work with #ab7cbf

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#F8F5FA
Tinted page background
Border#DCC8E4
Hairlines and dividers
Muted text#834B9A
Captions on the surface
Accent#6A8D3F
Second voice, not a rival
Dark variant#492A56
Hover, pressed, headers
Light variant#F4EEF7
Selected rows, tints
Dark surface#1F1424
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 #ab7cbf

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#90BF7C
Analogous left#8A7CBF
Analogous right#BF7CB2
Split-complement 1#B2BF7C
Split-complement 2#7CBF8A
Triadic 1#BFAB7C
Triadic 2#7CBFAB
Tetradic#BF8A7C

RGB percentages

Red67.1%
Green48.6%
Blue74.9%

CMYK percentages

Cyan10.5%
Magenta35.1%
Yellow0.0%
Key (black)25.1%

Color previews

#ab7cbf text on a black background

contrast 6.37:1

Card sample

#ab7cbf text on a white background

contrast 3.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab7cbf

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.

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

#ab7cbf, answered

What color is #ab7cbf?

#ab7cbf is a balanced soft violet, closest to Orchid (ΔE2000 9.3). It sits at 282° on the hue wheel with 34% saturation and 62% lightness, which reads as cool.

What is the RGB value of #ab7cbf?

rgb(171, 124, 191) — 171 red, 124 green and 191 blue out of 255, or 67.1% / 48.6% / 74.9% by channel.

Is #ab7cbf a light or a dark color?

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

Should I use black or white text on #ab7cbf?

Black. It scores 6.37:1 against #ab7cbf, versus 3.30:1 for white — AA at any size.

What is the complementary color of #ab7cbf?

#90BF7C sits directly opposite on the wheel. Softer options are the split-complements #B2BF7C and #7CBF8A, which give the same contrast with far less vibration.

What colors go well with #ab7cbf?

For interface work: #F8F5FA as the surface, #DCC8E4 for borders, #834B9A for secondary text, #6A8D3F as an accent and #492A56 for hover and pressed states. For a palette, the analogous pair #8A7CBF and #BF7CB2 stays calm, while #90BF7C is the loudest partner.

What is #ab7cbf in CMYK for printing?

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

Is #ab7cbf warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BF7CBB; nudged cooler, #927AC1.

Work with #ab7cbf in the Color Lab