Skip to content

#ab0cd9

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

RGB
171, 12, 217
HSL
287°, 90%, 45%
CMYK
21, 95, 0, 15
Luminance
0.1393

At a glance

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

Hex
#ab0cd9
Hue
287°
violet
Saturation
90%
electric
Lightness
45%
dark
Brightness
85%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1393
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.55:1
Closest name
Dark Orchid
ΔE2000 3.3
Where it sits
Hue287° of 360°
Saturation90%
Lightness45%
Temperature
Warm ← → Cool58% 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#ab0cd9
RGBrgb(171, 12, 217)
HSLhsl(287, 90%, 45%)
CMYKcmyk(21%, 95%, 0%, 15%)
LABlab(44.1 79.1 -66.2)
LCHlch(44.1 103.2 320.1)
OKLCHoklch(0.555 0.268 315.6)
Decimal11209945
Display P3color(display-p3 0.671 0.047 0.851)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab0cd9 on white: 5.55:1
AA ✓ pass · AA-large · AAA
Aa
#ab0cd9 on black: 3.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061DE
deuteranopia · #006CD5
tritanopia · #A74D80

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ab0cd9 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
#ECC3F8
#E395F9
#D460F6
#C62AF3
#ab0cd9
#980BC1
#7A099B
#590B70
#380746
Base = 600Lightest = 50 · #FAF2FDDarkest = 950 · #380746
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F6E5FB;
  --brand-200: #ECC3F8;
  --brand-300: #E395F9;
  --brand-400: #D460F6;
  --brand-500: #C62AF3;
  --brand-600: #ab0cd9;
  --brand-700: #980BC1;
  --brand-800: #7A099B;
  --brand-900: #590B70;
  --brand-950: #380746;
  --brand: #ab0cd9;
  --brand-ink: #ffffff;
}

Colors that work with #ab0cd9

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#894B9B
Captions on the surface
Accent#61C606
Second voice, not a rival
Dark variant#5F0779
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 #ab0cd9

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#3AD90C
Analogous left#440CD9
Analogous right#D90CA1
Split-complement 1#A1D90C
Split-complement 2#0CD944
Triadic 1#D9AB0C
Triadic 2#0CD9AB
Tetradic#D9440C

RGB percentages

Red67.1%
Green4.7%
Blue85.1%

CMYK percentages

Cyan21.2%
Magenta94.5%
Yellow0.0%
Key (black)14.9%

Color previews

#ab0cd9 text on a black background

contrast 3.79:1

Card sample

#ab0cd9 text on a white background

contrast 5.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab0cd9

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.

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

#ab0cd9, answered

What color is #ab0cd9?

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

What is the RGB value of #ab0cd9?

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

Is #ab0cd9 a light or a dark color?

It is a dark color. Relative luminance is 0.1393 and perceived brightness is 47%, so white text on it reaches 5.55:1.

Should I use black or white text on #ab0cd9?

White. It scores 5.55:1 against #ab0cd9, versus 3.79:1 for black — AA at any size.

What is the complementary color of #ab0cd9?

#3AD90C sits directly opposite on the wheel. Softer options are the split-complements #A1D90C and #0CD944, which give the same contrast with far less vibration.

What colors go well with #ab0cd9?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #894B9B for secondary text, #61C606 as an accent and #5F0779 for hover and pressed states. For a palette, the analogous pair #440CD9 and #D90CA1 stays calm, while #3AD90C is the loudest partner.

What is #ab0cd9 in CMYK for printing?

cmyk(21%, 95%, 0%, 15%). 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 #ab0cd9 warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D90CBC; nudged cooler, #5F0ADB.

Work with #ab0cd9 in the Color Lab