Skip to content

#a021df

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

RGB
160, 33, 223
HSL
280°, 75%, 50%
CMYK
28, 85, 0, 13
Luminance
0.1389

At a glance

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

Hex
#a021df
Hue
280°
violet
Saturation
75%
vivid
Lightness
50%
balanced
Brightness
87%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1389
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.56:1
Closest name
Dark Orchid
ΔE2000 2.7
Where it sits
Hue280° of 360°
Saturation75%
Lightness50%
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#a021df
RGBrgb(160, 33, 223)
HSLhsl(280, 75%, 50%)
CMYKcmyk(28%, 85%, 0%, 13%)
LABlab(44.1 75.2 -69.8)
LCHlch(44.1 102.6 317.1)
OKLCHoklch(0.552 0.260 310.1)
Decimal10494431
Display P3color(display-p3 0.627 0.129 0.875)

Copy-ready code

/* CSS */
color: #a021df;
background-color: #a021df;
/* Tailwind (arbitrary) */
class="text-[#a021df] bg-[#a021df]"
/* SCSS */
$brand: #a021df;
/* SwiftUI */
Color(red: 0.627, green: 0.129, blue: 0.875)
/* Android */
Color.parseColor("#a021df")
/* Flutter */
Color(0xFFA021DF)
/* Python / OpenCV (BGR) */
(223, 33, 160)

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

Accessibility — WCAG contrast

Aa
#a021df on white: 5.56:1
AA ✓ pass · AA-large · AAA
Aa
#a021df on black: 3.78:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0063E4
deuteranopia · #006ADB
tritanopia · #975785

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #a021df is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F3FC
#F3E7F9
#E5C8F4
#D59DF1
#C06CEA
#AB3BE3
#a021df
#801AB2
#66158F
#4B1367
#2F0C41
Base = 600Lightest = 50 · #F9F3FCDarkest = 950 · #2F0C41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F3E7F9;
  --brand-200: #E5C8F4;
  --brand-300: #D59DF1;
  --brand-400: #C06CEA;
  --brand-500: #AB3BE3;
  --brand-600: #a021df;
  --brand-700: #801AB2;
  --brand-800: #66158F;
  --brand-900: #4B1367;
  --brand-950: #2F0C41;
  --brand: #a021df;
  --brand-ink: #ffffff;
}

Colors that work with #a021df

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#DEC0ED
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#73B616
Second voice, not a rival
Dark variant#50106F
Hover, pressed, headers
Light variant#F5E9FC
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 #a021df

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#60DF21
Analogous left#4121DF
Analogous right#DF21BF
Split-complement 1#BFDF21
Split-complement 2#21DF41
Triadic 1#DFA021
Triadic 2#21DFA0
Tetradic#DF4121

RGB percentages

Red62.7%
Green12.9%
Blue87.5%

CMYK percentages

Cyan28.3%
Magenta85.2%
Yellow0.0%
Key (black)12.5%

Color previews

#a021df text on a black background

contrast 3.78:1

Card sample

#a021df text on a white background

contrast 5.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(160, 33, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(160, 33, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #a021df;
background: linear-gradient(135deg, #a021df, #DF219F);

Monochromatic scale

Palettes built from #a021df

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.

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

#a021df, answered

What color is #a021df?

#a021df is a balanced vivid violet, closest to Dark Orchid (ΔE2000 2.7). It sits at 280° on the hue wheel with 75% saturation and 50% lightness, which reads as cool.

What is the RGB value of #a021df?

rgb(160, 33, 223) — 160 red, 33 green and 223 blue out of 255, or 62.7% / 12.9% / 87.5% by channel.

Is #a021df a light or a dark color?

It is a dark color. Relative luminance is 0.1389 and perceived brightness is 46%, so white text on it reaches 5.56:1.

Should I use black or white text on #a021df?

White. It scores 5.56:1 against #a021df, versus 3.78:1 for black — AA at any size.

What is the complementary color of #a021df?

#60DF21 sits directly opposite on the wheel. Softer options are the split-complements #BFDF21 and #21DF41, which give the same contrast with far less vibration.

What colors go well with #a021df?

For interface work: #F8F4FA as the surface, #DEC0ED for borders, #804B9B for secondary text, #73B616 as an accent and #50106F for hover and pressed states. For a palette, the analogous pair #4121DF and #DF21BF stays calm, while #60DF21 is the loudest partner.

What is #a021df in CMYK for printing?

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

Is #a021df 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 #DF21D8; nudged cooler, #591EE2.

Work with #a021df in the Color Lab