Skip to content

#ab45df

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

RGB
171, 69, 223
HSL
280°, 71%, 57%
CMYK
23, 69, 0, 13
Luminance
0.1824

At a glance

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

Hex
#ab45df
Hue
280°
violet
Saturation
71%
vivid
Lightness
57%
balanced
Brightness
87%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1824
WCAG relative
Temperature
Cool
61/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
4.65:1
Closest name
Medium Orchid
ΔE2000 5.5
Where it sits
Hue280° of 360°
Saturation71%
Lightness57%
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#ab45df
RGBrgb(171, 69, 223)
HSLhsl(280, 71%, 57%)
CMYKcmyk(23%, 69%, 0%, 13%)
LABlab(49.8 65.1 -60.5)
LCHlch(49.8 88.9 317.1)
OKLCHoklch(0.596 0.229 311.8)
Decimal11224543
Display P3color(display-p3 0.671 0.271 0.875)

Copy-ready code

/* CSS */
color: #ab45df;
background-color: #ab45df;
/* Tailwind (arbitrary) */
class="text-[#ab45df] bg-[#ab45df]"
/* SCSS */
$brand: #ab45df;
/* SwiftUI */
Color(red: 0.671, green: 0.271, blue: 0.875)
/* Android */
Color.parseColor("#ab45df")
/* Flutter */
Color(0xFFAB45DF)
/* Python / OpenCV (BGR) */
(223, 69, 171)

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

Accessibility — WCAG contrast

Aa
#ab45df on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#ab45df on black: 4.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0071E3
deuteranopia · #3378DC
tritanopia · #A5668D

Color scale — 50 to 950

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

#F9F3FC
#F2E7F8
#E5C9F2
#D49FEF
#BE6FE6
#ab45df
#9624D1
#7D1EAE
#64188B
#4A1565
#2E0D3F
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #2E0D3F
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F2E7F8;
  --brand-200: #E5C9F2;
  --brand-300: #D49FEF;
  --brand-400: #BE6FE6;
  --brand-500: #ab45df;
  --brand-600: #9624D1;
  --brand-700: #7D1EAE;
  --brand-800: #64188B;
  --brand-900: #4A1565;
  --brand-950: #2E0D3F;
  --brand: #ab45df;
  --brand-ink: #000000;
}

Colors that work with #ab45df

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#DDC0ED
Hairlines and dividers
Muted text#804B9B
Captions on the surface
Accent#73B21A
Second voice, not a rival
Dark variant#4E136D
Hover, pressed, headers
Light variant#F5E9FB
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 #ab45df

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#79DF45
Analogous left#5E45DF
Analogous right#DF45C6
Split-complement 1#C6DF45
Split-complement 2#45DF5E
Triadic 1#DFAB45
Triadic 2#45DFAB
Tetradic#DF5E45

RGB percentages

Red67.1%
Green27.1%
Blue87.5%

CMYK percentages

Cyan23.3%
Magenta69.1%
Yellow0.0%
Key (black)12.5%

Color previews

#ab45df text on a black background

contrast 4.65:1

Card sample

#ab45df text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab45df

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.

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

#ab45df, answered

What color is #ab45df?

#ab45df is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.5). It sits at 280° on the hue wheel with 71% saturation and 57% lightness, which reads as cool.

What is the RGB value of #ab45df?

rgb(171, 69, 223) — 171 red, 69 green and 223 blue out of 255, or 67.1% / 27.1% / 87.5% by channel.

Is #ab45df a light or a dark color?

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

Should I use black or white text on #ab45df?

Black. It scores 4.65:1 against #ab45df, versus 4.52:1 for white — AA at any size.

What is the complementary color of #ab45df?

#79DF45 sits directly opposite on the wheel. Softer options are the split-complements #C6DF45 and #45DF5E, which give the same contrast with far less vibration.

What colors go well with #ab45df?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #804B9B for secondary text, #73B21A as an accent and #4E136D for hover and pressed states. For a palette, the analogous pair #5E45DF and #DF45C6 stays calm, while #79DF45 is the loudest partner.

What is #ab45df in CMYK for printing?

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

Is #ab45df 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 #DF45DB; nudged cooler, #7243E1.

Work with #ab45df in the Color Lab