Skip to content

#af7cba

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

RGB
175, 124, 186
HSL
289°, 31%, 61%
CMYK
6, 33, 0, 27
Luminance
0.2707

At a glance

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

Hex
#af7cba
Hue
289°
violet
Saturation
31%
soft
Lightness
61%
balanced
Brightness
73%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2707
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.41:1
Closest name
Orchid
ΔE2000 8.9
Where it sits
Hue289° of 360°
Saturation31%
Lightness61%
Temperature
Warm ← → Cool55% 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#af7cba
RGBrgb(175, 124, 186)
HSLhsl(289, 31%, 61%)
CMYKcmyk(6%, 33%, 0%, 27%)
LABlab(59.0 30.6 -24.8)
LCHlch(59.0 39.4 321.0)
OKLCHoklch(0.659 0.106 320.3)
Decimal11500730
Display P3color(display-p3 0.686 0.486 0.729)

Copy-ready code

/* CSS */
color: #af7cba;
background-color: #af7cba;
/* Tailwind (arbitrary) */
class="text-[#af7cba] bg-[#af7cba]"
/* SCSS */
$brand: #af7cba;
/* SwiftUI */
Color(red: 0.686, green: 0.486, blue: 0.729)
/* Android */
Color.parseColor("#af7cba")
/* Flutter */
Color(0xFFAF7CBA)
/* Python / OpenCV (BGR) */
(186, 124, 175)

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

Accessibility — WCAG contrast

Aa
#af7cba on white: 3.27:1
AA ✗ fail · AA-large · AAA
Aa
#af7cba on black: 6.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #758BBC
deuteranopia · #8190B8
tritanopia · #B08393

Color scale — 50 to 950

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

#F9F6F9
#F2ECF3
#E4D5E7
#D2B6D8
#BC91C5
#af7cba
#9354A0
#7A4686
#62386B
#482C4F
#2D1B31
Base = 500Lightest = 50 · #F9F6F9Darkest = 950 · #2D1B31
:root {
  --brand-50: #F9F6F9;
  --brand-100: #F2ECF3;
  --brand-200: #E4D5E7;
  --brand-300: #D2B6D8;
  --brand-400: #BC91C5;
  --brand-500: #af7cba;
  --brand-600: #9354A0;
  --brand-700: #7A4686;
  --brand-800: #62386B;
  --brand-900: #482C4F;
  --brand-950: #2D1B31;
  --brand: #af7cba;
  --brand-ink: #000000;
}

Colors that work with #af7cba

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#F9F5FA
Tinted page background
Border#DECAE3
Hairlines and dividers
Muted text#8A4F96
Captions on the surface
Accent#618A42
Second voice, not a rival
Dark variant#4D2C54
Hover, pressed, headers
Light variant#F5EEF6
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 #af7cba

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#87BA7C
Analogous left#907CBA
Analogous right#BA7CA6
Split-complement 1#A6BA7C
Split-complement 2#7CBA90
Triadic 1#BAAF7C
Triadic 2#7CBAAF
Tetradic#BA907C

RGB percentages

Red68.6%
Green48.6%
Blue72.9%

CMYK percentages

Cyan5.9%
Magenta33.3%
Yellow0.0%
Key (black)27.1%

Color previews

#af7cba text on a black background

contrast 6.41:1

Card sample

#af7cba text on a white background

contrast 3.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7cba

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.

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

#af7cba, answered

What color is #af7cba?

#af7cba is a balanced soft violet, closest to Orchid (ΔE2000 8.9). It sits at 289° on the hue wheel with 31% saturation and 61% lightness, which reads as neutral.

What is the RGB value of #af7cba?

rgb(175, 124, 186) — 175 red, 124 green and 186 blue out of 255, or 68.6% / 48.6% / 72.9% by channel.

Is #af7cba a light or a dark color?

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

Should I use black or white text on #af7cba?

Black. It scores 6.41:1 against #af7cba, versus 3.27:1 for white — AA at any size.

What is the complementary color of #af7cba?

#87BA7C sits directly opposite on the wheel. Softer options are the split-complements #A6BA7C and #7CBA90, which give the same contrast with far less vibration.

What colors go well with #af7cba?

For interface work: #F9F5FA as the surface, #DECAE3 for borders, #8A4F96 for secondary text, #618A42 as an accent and #4D2C54 for hover and pressed states. For a palette, the analogous pair #907CBA and #BA7CA6 stays calm, while #87BA7C is the loudest partner.

What is #af7cba in CMYK for printing?

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

Is #af7cba warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA7CAE; nudged cooler, #987ABC.

Work with #af7cba in the Color Lab