Skip to content

#af49fc

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

RGB
175, 73, 252
HSL
274°, 97%, 64%
CMYK
31, 71, 0, 1
Luminance
0.2091

At a glance

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

Hex
#af49fc
Hue
274°
violet
Saturation
97%
electric
Lightness
64%
balanced
Brightness
99%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2091
WCAG relative
Temperature
Cool
64/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.18:1
Closest name
Medium Orchid
ΔE2000 7.1
Where it sits
Hue274° of 360°
Saturation97%
Lightness64%
Temperature
Warm ← → Cool64% 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#af49fc
RGBrgb(175, 73, 252)
HSLhsl(274, 97%, 64%)
CMYKcmyk(31%, 71%, 0%, 1%)
LABlab(52.9 70.4 -71.8)
LCHlch(52.9 100.6 314.4)
OKLCHoklch(0.625 0.253 306.3)
Decimal11487740
Display P3color(display-p3 0.686 0.286 0.988)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af49fc on white: 4.05:1
AA ✗ fail · AA-large · AAA
Aa
#af49fc on black: 5.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007BFF
deuteranopia · #007FF8
tritanopia · #A2739E

Color scale — 50 to 950

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

#F8F1FD
#F1E4FC
#E2C1FB
#CF91FD
#af49fc
#9E22FB
#8B04F1
#7403C9
#5D03A1
#450774
#2B0448
Base = 400Lightest = 50 · #F8F1FDDarkest = 950 · #2B0448
:root {
  --brand-50: #F8F1FD;
  --brand-100: #F1E4FC;
  --brand-200: #E2C1FB;
  --brand-300: #CF91FD;
  --brand-400: #af49fc;
  --brand-500: #9E22FB;
  --brand-600: #8B04F1;
  --brand-700: #7403C9;
  --brand-800: #5D03A1;
  --brand-900: #450774;
  --brand-950: #2B0448;
  --brand: #af49fc;
  --brand-ink: #000000;
}

Colors that work with #af49fc

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#D9C0ED
Hairlines and dividers
Muted text#784B9B
Captions on the surface
Accent#8BCC00
Second voice, not a rival
Dark variant#48027D
Hover, pressed, headers
Light variant#F4E6FF
Selected rows, tints
Dark surface#1D1424
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 #af49fc

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#96FC49
Analogous left#5549FC
Analogous right#FC49EF
Split-complement 1#EFFC49
Split-complement 2#49FC55
Triadic 1#FCAF49
Triadic 2#49FCAF
Tetradic#FC5549

RGB percentages

Red68.6%
Green28.6%
Blue98.8%

CMYK percentages

Cyan30.6%
Magenta71.0%
Yellow0.0%
Key (black)1.2%

Color previews

#af49fc text on a black background

contrast 5.18:1

Card sample

#af49fc text on a white background

contrast 4.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af49fc

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.

#af49fc 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af49fc, answered

What color is #af49fc?

#af49fc is a balanced electric violet, closest to Medium Orchid (ΔE2000 7.1). It sits at 274° on the hue wheel with 97% saturation and 64% lightness, which reads as cool.

What is the RGB value of #af49fc?

rgb(175, 73, 252) — 175 red, 73 green and 252 blue out of 255, or 68.6% / 28.6% / 98.8% by channel.

Is #af49fc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2091 and perceived brightness is 55%, so black text on it reaches 5.18:1.

Should I use black or white text on #af49fc?

Black. It scores 5.18:1 against #af49fc, versus 4.05:1 for white — AA at any size.

What is the complementary color of #af49fc?

#96FC49 sits directly opposite on the wheel. Softer options are the split-complements #EFFC49 and #49FC55, which give the same contrast with far less vibration.

What colors go well with #af49fc?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #784B9B for secondary text, #8BCC00 as an accent and #48027D for hover and pressed states. For a palette, the analogous pair #5549FC and #FC49EF stays calm, while #96FC49 is the loudest partner.

What is #af49fc in CMYK for printing?

cmyk(31%, 71%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #af49fc warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F149FC; nudged cooler, #6C47FE.

Work with #af49fc in the Color Lab