Skip to content

#af7ec0

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

RGB
175, 126, 192
HSL
285°, 34%, 62%
CMYK
9, 34, 0, 25
Luminance
0.2784

At a glance

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

Hex
#af7ec0
Hue
285°
violet
Saturation
34%
soft
Lightness
62%
balanced
Brightness
75%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2784
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.57:1
Closest name
Orchid
ΔE2000 8.8
Where it sits
Hue285° of 360°
Saturation34%
Lightness62%
Temperature
Warm ← → Cool58% 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#af7ec0
RGBrgb(175, 126, 192)
HSLhsl(285, 34%, 62%)
CMYKcmyk(9%, 34%, 0%, 25%)
LABlab(59.8 30.7 -27.1)
LCHlch(59.8 41.0 318.5)
OKLCHoklch(0.665 0.109 317.2)
Decimal11501248
Display P3color(display-p3 0.686 0.494 0.753)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af7ec0 on white: 3.20:1
AA ✗ fail · AA-large · AAA
Aa
#af7ec0 on black: 6.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #758DC3
deuteranopia · #8092BE
tritanopia · #AF8696

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af7ec0 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
#F2ECF4
#E3D4E8
#D0B4DA
#af7ec0
#A168B5
#8F50A5
#774389
#5F366E
#472A51
#2C1A32
Base = 400Lightest = 50 · #F8F5F9Darkest = 950 · #2C1A32
:root {
  --brand-50: #F8F5F9;
  --brand-100: #F2ECF4;
  --brand-200: #E3D4E8;
  --brand-300: #D0B4DA;
  --brand-400: #af7ec0;
  --brand-500: #A168B5;
  --brand-600: #8F50A5;
  --brand-700: #774389;
  --brand-800: #5F366E;
  --brand-900: #472A51;
  --brand-950: #2C1A32;
  --brand: #af7ec0;
  --brand-ink: #000000;
}

Colors that work with #af7ec0

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#DDC8E4
Hairlines and dividers
Muted text#864B9A
Captions on the surface
Accent#678D3F
Second voice, not a rival
Dark variant#4A2A56
Hover, pressed, headers
Light variant#F4EEF7
Selected rows, tints
Dark surface#201424
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 #af7ec0

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#8FC07E
Analogous left#8E7EC0
Analogous right#C07EB0
Split-complement 1#B0C07E
Split-complement 2#7EC08E
Triadic 1#C0AF7E
Triadic 2#7EC0AF
Tetradic#C08E7E

RGB percentages

Red68.6%
Green49.4%
Blue75.3%

CMYK percentages

Cyan8.9%
Magenta34.4%
Yellow0.0%
Key (black)24.7%

Color previews

#af7ec0 text on a black background

contrast 6.57:1

Card sample

#af7ec0 text on a white background

contrast 3.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af7ec0

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.

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

#af7ec0, answered

What color is #af7ec0?

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

What is the RGB value of #af7ec0?

rgb(175, 126, 192) — 175 red, 126 green and 192 blue out of 255, or 68.6% / 49.4% / 75.3% by channel.

Is #af7ec0 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2784 and perceived brightness is 59%, so black text on it reaches 6.57:1.

Should I use black or white text on #af7ec0?

Black. It scores 6.57:1 against #af7ec0, versus 3.20:1 for white — AA at any size.

What is the complementary color of #af7ec0?

#8FC07E sits directly opposite on the wheel. Softer options are the split-complements #B0C07E and #7EC08E, which give the same contrast with far less vibration.

What colors go well with #af7ec0?

For interface work: #F9F5FA as the surface, #DDC8E4 for borders, #864B9A for secondary text, #678D3F as an accent and #4A2A56 for hover and pressed states. For a palette, the analogous pair #8E7EC0 and #C07EB0 stays calm, while #8FC07E is the loudest partner.

What is #af7ec0 in CMYK for printing?

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

Is #af7ec0 warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C07EB9; nudged cooler, #967CC2.

Work with #af7ec0 in the Color Lab