Skip to content

#ac71cb

a balanced, vivid violet · cool · closest name: Medium Orchid

RGB
172, 113, 203
HSL
279°, 46%, 62%
CMYK
15, 44, 0, 20
Luminance
0.2489

At a glance

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

Hex
#ac71cb
Hue
279°
violet
Saturation
46%
vivid
Lightness
62%
balanced
Brightness
80%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2489
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.98:1
Closest name
Medium Orchid
ΔE2000 6.8
Where it sits
Hue279° of 360°
Saturation46%
Lightness62%
Temperature
Warm ← → Cool62% 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#ac71cb
RGBrgb(172, 113, 203)
HSLhsl(279, 46%, 62%)
CMYKcmyk(15%, 44%, 0%, 20%)
LABlab(57.0 39.3 -37.7)
LCHlch(57.0 54.5 316.2)
OKLCHoklch(0.645 0.143 313.1)
Decimal11301323
Display P3color(display-p3 0.675 0.443 0.796)

Copy-ready code

/* CSS */
color: #ac71cb;
background-color: #ac71cb;
/* Tailwind (arbitrary) */
class="text-[#ac71cb] bg-[#ac71cb]"
/* SCSS */
$brand: #ac71cb;
/* SwiftUI */
Color(red: 0.675, green: 0.443, blue: 0.796)
/* Android */
Color.parseColor("#ac71cb")
/* Flutter */
Color(0xFFAC71CB)
/* Python / OpenCV (BGR) */
(203, 113, 172)

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

Accessibility — WCAG contrast

Aa
#ac71cb on white: 3.51:1
AA ✗ fail · AA-large · AAA
Aa
#ac71cb on black: 5.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5F85CE
deuteranopia · #6F8AC9
tritanopia · #A97E94

Color scale — 50 to 950

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

#F8F5FA
#F1EAF5
#E2D0EB
#CFADE1
#ac71cb
#9F5BC3
#8C42B3
#753795
#5D2C77
#452357
#2B1637
Base = 400Lightest = 50 · #F8F5FADarkest = 950 · #2B1637
:root {
  --brand-50: #F8F5FA;
  --brand-100: #F1EAF5;
  --brand-200: #E2D0EB;
  --brand-300: #CFADE1;
  --brand-400: #ac71cb;
  --brand-500: #9F5BC3;
  --brand-600: #8C42B3;
  --brand-700: #753795;
  --brand-800: #5D2C77;
  --brand-900: #452357;
  --brand-950: #2B1637;
  --brand: #ac71cb;
  --brand-ink: #000000;
}

Colors that work with #ac71cb

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#F8F4FA
Tinted page background
Border#DCC3E9
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#6F9A32
Second voice, not a rival
Dark variant#49225D
Hover, pressed, headers
Light variant#F4ECF8
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 #ac71cb

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#90CB71
Analogous left#7F71CB
Analogous right#CB71BD
Split-complement 1#BDCB71
Split-complement 2#71CB7F
Triadic 1#CBAC71
Triadic 2#71CBAC
Tetradic#CB7F71

RGB percentages

Red67.5%
Green44.3%
Blue79.6%

CMYK percentages

Cyan15.3%
Magenta44.3%
Yellow0.0%
Key (black)20.4%

Color previews

#ac71cb text on a black background

contrast 5.98:1

Card sample

#ac71cb text on a white background

contrast 3.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(172, 113, 203, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 113, 203, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac71cb;
background: linear-gradient(135deg, #ac71cb, #CB71AE);

Monochromatic scale

Palettes built from #ac71cb

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.

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

#ac71cb, answered

What color is #ac71cb?

#ac71cb is a balanced vivid violet, closest to Medium Orchid (ΔE2000 6.8). It sits at 279° on the hue wheel with 46% saturation and 62% lightness, which reads as cool.

What is the RGB value of #ac71cb?

rgb(172, 113, 203) — 172 red, 113 green and 203 blue out of 255, or 67.5% / 44.3% / 79.6% by channel.

Is #ac71cb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2489 and perceived brightness is 57%, so black text on it reaches 5.98:1.

Should I use black or white text on #ac71cb?

Black. It scores 5.98:1 against #ac71cb, versus 3.51:1 for white — AA at any size.

What is the complementary color of #ac71cb?

#90CB71 sits directly opposite on the wheel. Softer options are the split-complements #BDCB71 and #71CB7F, which give the same contrast with far less vibration.

What colors go well with #ac71cb?

For interface work: #F8F4FA as the surface, #DCC3E9 for borders, #7F4B9B for secondary text, #6F9A32 as an accent and #49225D for hover and pressed states. For a palette, the analogous pair #7F71CB and #CB71BD stays calm, while #90CB71 is the loudest partner.

What is #ac71cb in CMYK for printing?

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

Is #ac71cb warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CB71C9; nudged cooler, #8A6FCD.

Work with #ac71cb in the Color Lab