Skip to content

#a04fdf

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

RGB
160, 79, 223
HSL
274°, 69%, 59%
CMYK
28, 65, 0, 13
Luminance
0.1839

At a glance

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

Hex
#a04fdf
Hue
274°
violet
Saturation
69%
vivid
Lightness
59%
balanced
Brightness
87%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1839
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.68:1
Closest name
Medium Orchid
ΔE2000 6.3
Where it sits
Hue274° of 360°
Saturation69%
Lightness59%
Temperature
Warm ← → Cool65% 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#a04fdf
RGBrgb(160, 79, 223)
HSLhsl(274, 69%, 59%)
CMYKcmyk(28%, 65%, 0%, 13%)
LABlab(50.0 58.4 -60.3)
LCHlch(50.0 83.9 314.1)
OKLCHoklch(0.594 0.213 306.9)
Decimal10506207
Display P3color(display-p3 0.627 0.310 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#a04fdf on white: 4.49:1
AA ✗ fail · AA-large · AAA
Aa
#a04fdf on black: 4.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0074E3
deuteranopia · #2F77DC
tritanopia · #966D90

Color scale — 50 to 950

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

#F8F3FB
#F1E7F8
#E0CAF2
#CCA0EE
#B271E5
#a04fdf
#8526CF
#6F1FAD
#59198A
#421664
#290E3F
Base = 500Lightest = 50 · #F8F3FBDarkest = 950 · #290E3F
:root {
  --brand-50: #F8F3FB;
  --brand-100: #F1E7F8;
  --brand-200: #E0CAF2;
  --brand-300: #CCA0EE;
  --brand-400: #B271E5;
  --brand-500: #a04fdf;
  --brand-600: #8526CF;
  --brand-700: #6F1FAD;
  --brand-800: #59198A;
  --brand-900: #421664;
  --brand-950: #290E3F;
  --brand: #a04fdf;
  --brand-ink: #000000;
}

Colors that work with #a04fdf

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#82B11B
Second voice, not a rival
Dark variant#45146C
Hover, pressed, headers
Light variant#F3E9FB
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 #a04fdf

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#8EDF4F
Analogous left#584FDF
Analogous right#DF4FD6
Split-complement 1#D6DF4F
Split-complement 2#4FDF58
Triadic 1#DFA04F
Triadic 2#4FDFA0
Tetradic#DF584F

RGB percentages

Red62.7%
Green31.0%
Blue87.5%

CMYK percentages

Cyan28.3%
Magenta64.6%
Yellow0.0%
Key (black)12.5%

Color previews

#a04fdf text on a black background

contrast 4.68:1

Card sample

#a04fdf text on a white background

contrast 4.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #a04fdf

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.

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

#a04fdf, answered

What color is #a04fdf?

#a04fdf is a balanced vivid violet, closest to Medium Orchid (ΔE2000 6.3). It sits at 274° on the hue wheel with 69% saturation and 59% lightness, which reads as cool.

What is the RGB value of #a04fdf?

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

Is #a04fdf a light or a dark color?

It is a mid-tone. Relative luminance is 0.1839 and perceived brightness is 51%, so black text on it reaches 4.68:1.

Should I use black or white text on #a04fdf?

Black. It scores 4.68:1 against #a04fdf, versus 4.49:1 for white — AA at any size.

What is the complementary color of #a04fdf?

#8EDF4F sits directly opposite on the wheel. Softer options are the split-complements #D6DF4F and #4FDF58, which give the same contrast with far less vibration.

What colors go well with #a04fdf?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #784B9B for secondary text, #82B11B as an accent and #45146C for hover and pressed states. For a palette, the analogous pair #584FDF and #DF4FD6 stays calm, while #8EDF4F is the loudest partner.

What is #a04fdf in CMYK for printing?

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

Is #a04fdf warm or cool?

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

Work with #a04fdf in the Color Lab