Skip to content

#af17fe

a balanced, electric violet · cool · closest name: Blue Violet

RGB
175, 23, 254
HSL
280°, 99%, 54%
CMYK
31, 91, 0, 0
Luminance
0.1688

At a glance

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

Hex
#af17fe
Hue
280°
violet
Saturation
99%
electric
Lightness
54%
balanced
Brightness
100%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1688
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.80:1
Closest name
Blue Violet
ΔE2000 6.7
Where it sits
Hue280° of 360°
Saturation99%
Lightness54%
Temperature
Warm ← → Cool61% 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#af17fe
RGBrgb(175, 23, 254)
HSLhsl(280, 99%, 54%)
CMYKcmyk(31%, 91%, 0%, 0%)
LABlab(48.1 85.0 -80.7)
LCHlch(48.1 117.2 316.5)
OKLCHoklch(0.592 0.293 308.3)
Decimal11474942
Display P3color(display-p3 0.686 0.090 0.996)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af17fe on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#af17fe on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006DFF
deuteranopia · #0073FA
tritanopia · #A26197

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af17fe 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
#F4E3FC
#E7C0FB
#D98FFE
#C557FE
#af17fe
#A101F4
#8601CB
#6B01A2
#4F0575
#310349
Base = 500Lightest = 50 · #F9F1FEDarkest = 950 · #310349
:root {
  --brand-50: #F9F1FE;
  --brand-100: #F4E3FC;
  --brand-200: #E7C0FB;
  --brand-300: #D98FFE;
  --brand-400: #C557FE;
  --brand-500: #af17fe;
  --brand-600: #A101F4;
  --brand-700: #8601CB;
  --brand-800: #6B01A2;
  --brand-900: #4F0575;
  --brand-950: #310349;
  --brand: #af17fe;
  --brand-ink: #ffffff;
}

Colors that work with #af17fe

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#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#79CC00
Second voice, not a rival
Dark variant#54017F
Hover, pressed, headers
Light variant#F6E6FF
Selected rows, tints
Dark surface#1F1424
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 #af17fe

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

Works well for
  • Body text and links on white
  • 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#66FE17
Analogous left#3C17FE
Analogous right#FE17D9
Split-complement 1#D9FE17
Split-complement 2#17FE3C
Triadic 1#FEAF17
Triadic 2#17FEAF
Tetradic#FE3C17

RGB percentages

Red68.6%
Green9.0%
Blue99.6%

CMYK percentages

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

Color previews

#af17fe text on a black background

contrast 4.38:1

Card sample

#af17fe text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af17fe

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.

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

#af17fe, answered

What color is #af17fe?

#af17fe is a balanced electric violet, closest to Blue Violet (ΔE2000 6.7). It sits at 280° on the hue wheel with 99% saturation and 54% lightness, which reads as cool.

What is the RGB value of #af17fe?

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

Is #af17fe a light or a dark color?

It is a dark color. Relative luminance is 0.1688 and perceived brightness is 51%, so white text on it reaches 4.80:1.

Should I use black or white text on #af17fe?

White. It scores 4.80:1 against #af17fe, versus 4.38:1 for black — AA at any size.

What is the complementary color of #af17fe?

#66FE17 sits directly opposite on the wheel. Softer options are the split-complements #D9FE17 and #17FE3C, which give the same contrast with far less vibration.

What colors go well with #af17fe?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #79CC00 as an accent and #54017F for hover and pressed states. For a palette, the analogous pair #3C17FE and #FE17D9 stays calm, while #66FE17 is the loudest partner.

What is #af17fe in CMYK for printing?

cmyk(31%, 91%, 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 #af17fe warm or cool?

Cool — it scores 61 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FE17F8; nudged cooler, #5A16FF.

Work with #af17fe in the Color Lab