Skip to content

#a71dfd

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

RGB
167, 29, 253
HSL
277°, 98%, 55%
CMYK
34, 89, 0, 1
Luminance
0.1619

At a glance

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

Hex
#a71dfd
Hue
277°
violet
Saturation
98%
electric
Lightness
55%
balanced
Brightness
99%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1619
WCAG relative
Temperature
Cool
63/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.96:1
Closest name
Blue Violet
ΔE2000 5.6
Where it sits
Hue277° of 360°
Saturation98%
Lightness55%
Temperature
Warm ← → Cool63% 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#a71dfd
RGBrgb(167, 29, 253)
HSLhsl(277, 98%, 55%)
CMYKcmyk(34%, 89%, 0%, 1%)
LABlab(47.2 82.8 -81.6)
LCHlch(47.2 116.3 315.4)
OKLCHoklch(0.584 0.288 306.0)
Decimal10952189
Display P3color(display-p3 0.655 0.114 0.992)

Copy-ready code

/* CSS */
color: #a71dfd;
background-color: #a71dfd;
/* Tailwind (arbitrary) */
class="text-[#a71dfd] bg-[#a71dfd]"
/* SCSS */
$brand: #a71dfd;
/* SwiftUI */
Color(red: 0.655, green: 0.114, blue: 0.992)
/* Android */
Color.parseColor("#a71dfd")
/* Flutter */
Color(0xFFA71DFD)
/* Python / OpenCV (BGR) */
(253, 29, 167)

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 #a71dfd · 4.96:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.96:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.24:1
AA fail · AA large pass · AAA fail
Reading the other direction: #a71dfd as text scores 4.96:1 on white and 4.24:1 on black.

Accessibility — WCAG contrast

Aa
#a71dfd on white: 4.96:1
AA ✓ pass · AA-large · AAA
Aa
#a71dfd on black: 4.24:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006CFF
deuteranopia · #0070F9
tritanopia · #976497

Color scale — 50 to 950

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

#F9F1FD
#F3E3FC
#E5C1FB
#D490FE
#BE58FD
#a71dfd
#9602F3
#7D02CA
#6401A2
#4A0674
#2E0449
Base = 500Lightest = 50 · #F9F1FDDarkest = 950 · #2E0449
:root {
  --brand-50: #F9F1FD;
  --brand-100: #F3E3FC;
  --brand-200: #E5C1FB;
  --brand-300: #D490FE;
  --brand-400: #BE58FD;
  --brand-500: #a71dfd;
  --brand-600: #9602F3;
  --brand-700: #7D02CA;
  --brand-800: #6401A2;
  --brand-900: #4A0674;
  --brand-950: #2E0449;
  --brand: #a71dfd;
  --brand-ink: #ffffff;
}

Colors that work with #a71dfd

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#DBC0ED
Hairlines and dividers
Muted text#7C4B9B
Captions on the surface
Accent#81CC00
Second voice, not a rival
Dark variant#4E017E
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 #a71dfd

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#73FD1D
Analogous left#371DFD
Analogous right#FD1DE3
Split-complement 1#E3FD1D
Split-complement 2#1DFD37
Triadic 1#FDA71D
Triadic 2#1DFDA7
Tetradic#FD371D

RGB percentages

Red65.5%
Green11.4%
Blue99.2%

CMYK percentages

Cyan34.0%
Magenta88.5%
Yellow0.0%
Key (black)0.8%

Color previews

#a71dfd text on a black background

contrast 4.24:1

Card sample

#a71dfd text on a white background

contrast 4.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(167, 29, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(167, 29, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a71dfd;
background: linear-gradient(135deg, #a71dfd, #FD1DBE);

Monochromatic scale

Palettes built from #a71dfd

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.

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

#a71dfd, answered

What color is #a71dfd?

#a71dfd is a balanced electric violet, closest to Blue Violet (ΔE2000 5.6). It sits at 277° on the hue wheel with 98% saturation and 55% lightness, which reads as cool.

What is the RGB value of #a71dfd?

rgb(167, 29, 253) — 167 red, 29 green and 253 blue out of 255, or 65.5% / 11.4% / 99.2% by channel.

Is #a71dfd a light or a dark color?

It is a dark color. Relative luminance is 0.1619 and perceived brightness is 50%, so white text on it reaches 4.96:1.

Should I use black or white text on #a71dfd?

White. It scores 4.96:1 against #a71dfd, versus 4.24:1 for black — AA at any size.

What is the complementary color of #a71dfd?

#73FD1D sits directly opposite on the wheel. Softer options are the split-complements #E3FD1D and #1DFD37, which give the same contrast with far less vibration.

What colors go well with #a71dfd?

For interface work: #F8F4FA as the surface, #DBC0ED for borders, #7C4B9B for secondary text, #81CC00 as an accent and #4E017E for hover and pressed states. For a palette, the analogous pair #371DFD and #FD1DE3 stays calm, while #73FD1D is the loudest partner.

What is #a71dfd in CMYK for printing?

cmyk(34%, 89%, 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 #a71dfd warm or cool?

Cool — it scores 63 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F91DFD; nudged cooler, #541BFF.

Work with #a71dfd in the Color Lab