Skip to content

#ab0cd6

a dark, electric violet · neutral · closest name: Dark Orchid

RGB
171, 12, 214
HSL
287°, 89%, 44%
CMYK
20, 94, 0, 16
Luminance
0.1378

At a glance

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

Hex
#ab0cd6
Hue
287°
violet
Saturation
89%
electric
Lightness
44%
dark
Brightness
84%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1378
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.59:1
Closest name
Dark Orchid
ΔE2000 3.3
Where it sits
Hue287° of 360°
Saturation89%
Lightness44%
Temperature
Warm ← → Cool57% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ab0cd6
RGBrgb(171, 12, 214)
HSLhsl(287, 89%, 44%)
CMYKcmyk(20%, 94%, 0%, 16%)
LABlab(43.9 78.6 -64.9)
LCHlch(43.9 101.9 320.5)
OKLCHoklch(0.553 0.266 316.3)
Decimal11209942
Display P3color(display-p3 0.671 0.047 0.839)

Copy-ready code

/* CSS */
color: #ab0cd6;
background-color: #ab0cd6;
/* Tailwind (arbitrary) */
class="text-[#ab0cd6] bg-[#ab0cd6]"
/* SCSS */
$brand: #ab0cd6;
/* SwiftUI */
Color(red: 0.671, green: 0.047, blue: 0.839)
/* Android */
Color.parseColor("#ab0cd6")
/* Flutter */
Color(0xFFAB0CD6)
/* Python / OpenCV (BGR) */
(214, 12, 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#ffffff on #ab0cd6 · 5.59:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.59:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.76:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ab0cd6 as text scores 5.59:1 on white and 3.76:1 on black.

Accessibility — WCAG contrast

Aa
#ab0cd6 on white: 5.59:1
AA ✓ pass · AA-large · AAA
Aa
#ab0cd6 on black: 3.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060DB
deuteranopia · #006BD2
tritanopia · #A84B7E

Color scale — 50 to 950

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

#FAF2FD
#F6E5FB
#EDC4F8
#E495F9
#D660F6
#C82AF3
#ab0cd6
#9A0BC1
#7B099B
#5A0B70
#380746
Base = 600Lightest = 50 · #FAF2FDDarkest = 950 · #380746
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F6E5FB;
  --brand-200: #EDC4F8;
  --brand-300: #E495F9;
  --brand-400: #D660F6;
  --brand-500: #C82AF3;
  --brand-600: #ab0cd6;
  --brand-700: #9A0BC1;
  --brand-800: #7B099B;
  --brand-900: #5A0B70;
  --brand-950: #380746;
  --brand: #ab0cd6;
  --brand-ink: #ffffff;
}

Colors that work with #ab0cd6

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#F9F4FA
Tinted page background
Border#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#5FC606
Second voice, not a rival
Dark variant#600779
Hover, pressed, headers
Light variant#F9E7FE
Selected rows, tints
Dark surface#211424
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 #ab0cd6

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#37D60C
Analogous left#460CD6
Analogous right#D60C9C
Split-complement 1#9CD60C
Split-complement 2#0CD646
Triadic 1#D6AB0C
Triadic 2#0CD6AB
Tetradic#D6460C

RGB percentages

Red67.1%
Green4.7%
Blue83.9%

CMYK percentages

Cyan20.1%
Magenta94.4%
Yellow0.0%
Key (black)16.1%

Color previews

#ab0cd6 text on a black background

contrast 3.76:1

Card sample

#ab0cd6 text on a white background

contrast 5.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab0cd6

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.

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

#ab0cd6, answered

What color is #ab0cd6?

#ab0cd6 is a dark electric violet, closest to Dark Orchid (ΔE2000 3.3). It sits at 287° on the hue wheel with 89% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #ab0cd6?

rgb(171, 12, 214) — 171 red, 12 green and 214 blue out of 255, or 67.1% / 4.7% / 83.9% by channel.

Is #ab0cd6 a light or a dark color?

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

Should I use black or white text on #ab0cd6?

White. It scores 5.59:1 against #ab0cd6, versus 3.76:1 for black — AA at any size.

What is the complementary color of #ab0cd6?

#37D60C sits directly opposite on the wheel. Softer options are the split-complements #9CD60C and #0CD646, which give the same contrast with far less vibration.

What colors go well with #ab0cd6?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #5FC606 as an accent and #600779 for hover and pressed states. For a palette, the analogous pair #460CD6 and #D60C9C stays calm, while #37D60C is the loudest partner.

What is #ab0cd6 in CMYK for printing?

cmyk(20%, 94%, 0%, 16%). 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 #ab0cd6 warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D60CB7; nudged cooler, #600AD8.

Work with #ab0cd6 in the Color Lab