Skip to content

#af29fe

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

RGB
175, 41, 254
HSL
278°, 99%, 58%
CMYK
31, 84, 0, 0
Luminance
0.1786

At a glance

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

Hex
#af29fe
Hue
278°
violet
Saturation
99%
electric
Lightness
58%
balanced
Brightness
100%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1786
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.59:1
Closest name
Dark Orchid
ΔE2000 7.4
Where it sits
Hue278° of 360°
Saturation99%
Lightness58%
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#af29fe
RGBrgb(175, 41, 254)
HSLhsl(278, 99%, 58%)
CMYKcmyk(31%, 84%, 0%, 0%)
LABlab(49.3 81.4 -78.7)
LCHlch(49.3 113.2 316.0)
OKLCHoklch(0.601 0.283 307.8)
Decimal11479550
Display P3color(display-p3 0.686 0.161 0.996)

Copy-ready code

/* CSS */
color: #af29fe;
background-color: #af29fe;
/* Tailwind (arbitrary) */
class="text-[#af29fe] bg-[#af29fe]"
/* SCSS */
$brand: #af29fe;
/* SwiftUI */
Color(red: 0.686, green: 0.161, blue: 0.996)
/* Android */
Color.parseColor("#af29fe")
/* Flutter */
Color(0xFFAF29FE)
/* Python / OpenCV (BGR) */
(254, 41, 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#ffffff on #af29fe · 4.59:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.59:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.57:1
AA pass · AA large pass · AAA fail
Reading the other direction: #af29fe as text scores 4.59:1 on white and 4.57:1 on black.

Accessibility — WCAG contrast

Aa
#af29fe on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#af29fe on black: 4.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0071FF
deuteranopia · #0076FA
tritanopia · #A26699

Color scale — 50 to 950

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

#F9F1FE
#F3E3FC
#E5C0FB
#D58FFE
#C057FE
#af29fe
#9A01F4
#8001CB
#6601A2
#4C0575
#2F0349
Base = 500Lightest = 50 · #F9F1FEDarkest = 950 · #2F0349
:root {
  --brand-50: #F9F1FE;
  --brand-100: #F3E3FC;
  --brand-200: #E5C0FB;
  --brand-300: #D58FFE;
  --brand-400: #C057FE;
  --brand-500: #af29fe;
  --brand-600: #9A01F4;
  --brand-700: #8001CB;
  --brand-800: #6601A2;
  --brand-900: #4C0575;
  --brand-950: #2F0349;
  --brand: #af29fe;
  --brand-ink: #ffffff;
}

Colors that work with #af29fe

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F8F4FA
Tinted page background
Border#DCC0ED
Hairlines and dividers
Muted text#7D4B9B
Captions on the surface
Accent#7FCC00
Second voice, not a rival
Dark variant#50017F
Hover, pressed, headers
Light variant#F5E6FF
Selected rows, tints
Dark surface#1E1424
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 #af29fe

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links 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
  • 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#78FE29
Analogous left#4429FE
Analogous right#FE29E3
Split-complement 1#E3FE29
Split-complement 2#29FE44
Triadic 1#FEAF29
Triadic 2#29FEAF
Tetradic#FE4429

RGB percentages

Red68.6%
Green16.1%
Blue99.6%

CMYK percentages

Cyan31.1%
Magenta83.9%
Yellow0.0%
Key (black)0.4%

Color previews

#af29fe text on a black background

contrast 4.57:1

Card sample

#af29fe text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af29fe

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.

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

#af29fe, answered

What color is #af29fe?

#af29fe is a balanced electric violet, closest to Dark Orchid (ΔE2000 7.4). It sits at 278° on the hue wheel with 99% saturation and 58% lightness, which reads as cool.

What is the RGB value of #af29fe?

rgb(175, 41, 254) — 175 red, 41 green and 254 blue out of 255, or 68.6% / 16.1% / 99.6% by channel.

Is #af29fe a light or a dark color?

It is a dark color. Relative luminance is 0.1786 and perceived brightness is 52%, so white text on it reaches 4.59:1.

Should I use black or white text on #af29fe?

White. It scores 4.59:1 against #af29fe, versus 4.57:1 for black — AA at any size.

What is the complementary color of #af29fe?

#78FE29 sits directly opposite on the wheel. Softer options are the split-complements #E3FE29 and #29FE44, which give the same contrast with far less vibration.

What colors go well with #af29fe?

For interface work: #F8F4FA as the surface, #DCC0ED for borders, #7D4B9B for secondary text, #7FCC00 as an accent and #50017F for hover and pressed states. For a palette, the analogous pair #4429FE and #FE29E3 stays calm, while #78FE29 is the loudest partner.

What is #af29fe in CMYK for printing?

cmyk(31%, 84%, 0%, 0%). 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 #af29fe 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 #FD29FE; nudged cooler, #6028FF.

Work with #af29fe in the Color Lab