Skip to content

#af6bcb

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

RGB
175, 107, 203
HSL
283°, 48%, 61%
CMYK
14, 47, 0, 20
Luminance
0.2394

At a glance

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

Hex
#af6bcb
Hue
283°
violet
Saturation
48%
vivid
Lightness
61%
balanced
Brightness
80%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2394
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.79:1
Closest name
Medium Orchid
ΔE2000 5.1
Where it sits
Hue283° of 360°
Saturation48%
Lightness61%
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#af6bcb
RGBrgb(175, 107, 203)
HSLhsl(283, 48%, 61%)
CMYKcmyk(14%, 47%, 0%, 20%)
LABlab(56.0 43.5 -39.2)
LCHlch(56.0 58.5 318.0)
OKLCHoklch(0.639 0.155 315.4)
Decimal11496395
Display P3color(display-p3 0.686 0.420 0.796)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af6bcb on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#af6bcb on black: 5.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5882CE
deuteranopia · #6B88C8
tritanopia · #AD7991

Color scale — 50 to 950

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

#F9F4FA
#F2EAF5
#E4D0EC
#D2ACE2
#BC82D3
#af6bcb
#9340B5
#7A3597
#622A79
#482258
#2D1537
Base = 500Lightest = 50 · #F9F4FADarkest = 950 · #2D1537
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F2EAF5;
  --brand-200: #E4D0EC;
  --brand-300: #D2ACE2;
  --brand-400: #BC82D3;
  --brand-500: #af6bcb;
  --brand-600: #9340B5;
  --brand-700: #7A3597;
  --brand-800: #622A79;
  --brand-900: #482258;
  --brand-950: #2D1537;
  --brand: #af6bcb;
  --brand-ink: #000000;
}

Colors that work with #af6bcb

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#DEC3EA
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6A9B31
Second voice, not a rival
Dark variant#4C215E
Hover, pressed, headers
Light variant#F5ECF8
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 #af6bcb

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#87CB6B
Analogous left#7F6BCB
Analogous right#CB6BB7
Split-complement 1#B7CB6B
Split-complement 2#6BCB7F
Triadic 1#CBAF6B
Triadic 2#6BCBAF
Tetradic#CB7F6B

RGB percentages

Red68.6%
Green42.0%
Blue79.6%

CMYK percentages

Cyan13.8%
Magenta47.3%
Yellow0.0%
Key (black)20.4%

Color previews

#af6bcb text on a black background

contrast 5.79:1

Card sample

#af6bcb text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af6bcb

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.

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

#af6bcb, answered

What color is #af6bcb?

#af6bcb is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.1). It sits at 283° on the hue wheel with 48% saturation and 61% lightness, which reads as cool.

What is the RGB value of #af6bcb?

rgb(175, 107, 203) — 175 red, 107 green and 203 blue out of 255, or 68.6% / 42% / 79.6% by channel.

Is #af6bcb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2394 and perceived brightness is 56%, so black text on it reaches 5.79:1.

Should I use black or white text on #af6bcb?

Black. It scores 5.79:1 against #af6bcb, versus 3.63:1 for white — AA at any size.

What is the complementary color of #af6bcb?

#87CB6B sits directly opposite on the wheel. Softer options are the split-complements #B7CB6B and #6BCB7F, which give the same contrast with far less vibration.

What colors go well with #af6bcb?

For interface work: #F9F4FA as the surface, #DEC3EA for borders, #834B9B for secondary text, #6A9B31 as an accent and #4C215E for hover and pressed states. For a palette, the analogous pair #7F6BCB and #CB6BB7 stays calm, while #87CB6B is the loudest partner.

What is #af6bcb in CMYK for printing?

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

Is #af6bcb 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 #CB6BC4; nudged cooler, #8B69CD.

Work with #af6bcb in the Color Lab