Skip to content

#ab6df0

a light, electric violet · cool · closest name: Medium Purple

RGB
171, 109, 240
HSL
268°, 81%, 68%
CMYK
29, 55, 0, 6
Luminance
0.2589

At a glance

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

Hex
#ab6df0
Hue
268°
violet
Saturation
81%
electric
Lightness
68%
light
Brightness
94%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2589
WCAG relative
Temperature
Cool
68/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.18:1
Closest name
Medium Purple
ΔE2000 5.1
Where it sits
Hue268° of 360°
Saturation81%
Lightness68%
Temperature
Warm ← → Cool68% 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#ab6df0
RGBrgb(171, 109, 240)
HSLhsl(268, 81%, 68%)
CMYKcmyk(29%, 55%, 0%, 6%)
LABlab(57.9 49.6 -57.0)
LCHlch(57.9 75.6 311.1)
OKLCHoklch(0.658 0.193 303.4)
Decimal11234800
Display P3color(display-p3 0.671 0.427 0.941)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab6df0 on white: 3.40:1
AA ✗ fail · AA-large · AAA
Aa
#ab6df0 on black: 6.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3C8AF4
deuteranopia · #518BED
tritanopia · #9E86A4

Color scale — 50 to 950

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

#F7F2FC
#EFE6F9
#DDC6F6
#C499F5
#ab6df0
#8A33EA
#7517DE
#6213B9
#4E0F94
#3B0F6B
#250A43
Base = 400Lightest = 50 · #F7F2FCDarkest = 950 · #250A43
:root {
  --brand-50: #F7F2FC;
  --brand-100: #EFE6F9;
  --brand-200: #DDC6F6;
  --brand-300: #C499F5;
  --brand-400: #ab6df0;
  --brand-500: #8A33EA;
  --brand-600: #7517DE;
  --brand-700: #6213B9;
  --brand-800: #4E0F94;
  --brand-900: #3B0F6B;
  --brand-950: #250A43;
  --brand: #ab6df0;
  --brand-ink: #000000;
}

Colors that work with #ab6df0

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#F7F4FA
Tinted page background
Border#D5C0ED
Hairlines and dividers
Muted text#714B9B
Captions on the surface
Accent#95BD0F
Second voice, not a rival
Dark variant#3D0C74
Hover, pressed, headers
Light variant#F2E8FD
Selected rows, tints
Dark surface#1C1424
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 #ab6df0

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#B2F06D
Analogous left#6D70F0
Analogous right#ED6DF0
Split-complement 1#F0ED6D
Split-complement 2#70F06D
Triadic 1#F0AB6D
Triadic 2#6DF0AB
Tetradic#F06D70

RGB percentages

Red67.1%
Green42.7%
Blue94.1%

CMYK percentages

Cyan28.8%
Magenta54.6%
Yellow0.0%
Key (black)5.9%

Color previews

#ab6df0 text on a black background

contrast 6.18:1

Card sample

#ab6df0 text on a white background

contrast 3.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab6df0

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.

#ab6df0 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ab6df0, answered

What color is #ab6df0?

#ab6df0 is a light electric violet, closest to Medium Purple (ΔE2000 5.1). It sits at 268° on the hue wheel with 81% saturation and 68% lightness, which reads as cool.

What is the RGB value of #ab6df0?

rgb(171, 109, 240) — 171 red, 109 green and 240 blue out of 255, or 67.1% / 42.7% / 94.1% by channel.

Is #ab6df0 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2589 and perceived brightness is 59%, so black text on it reaches 6.18:1.

Should I use black or white text on #ab6df0?

Black. It scores 6.18:1 against #ab6df0, versus 3.40:1 for white — AA at any size.

What is the complementary color of #ab6df0?

#B2F06D sits directly opposite on the wheel. Softer options are the split-complements #F0ED6D and #70F06D, which give the same contrast with far less vibration.

What colors go well with #ab6df0?

For interface work: #F7F4FA as the surface, #D5C0ED for borders, #714B9B for secondary text, #95BD0F as an accent and #3D0C74 for hover and pressed states. For a palette, the analogous pair #6D70F0 and #ED6DF0 stays calm, while #B2F06D is the loudest partner.

What is #ab6df0 in CMYK for printing?

cmyk(29%, 55%, 0%, 6%). 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 #ab6df0 warm or cool?

Cool — it scores 68 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DB6DF0; nudged cooler, #7A6BF2.

Work with #ab6df0 in the Color Lab