Skip to content

#5c01ac

a dark, electric violet · cool · closest name: Indigo

RGB
92, 1, 172
HSL
272°, 99%, 34%
CMYK
47, 99, 0, 33
Luminance
0.0528

At a glance

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

Hex
#5c01ac
Hue
272°
violet
Saturation
99%
electric
Lightness
34%
dark
Brightness
67%
HSV value
Perceived
30%
weighted brightness
Luminance
0.0528
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
White
10.22:1
Closest name
Indigo
ΔE2000 6.4
Where it sits
Hue272° of 360°
Saturation99%
Lightness34%
Temperature
Warm ← → Cool66% 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#5c01ac
RGBrgb(92, 1, 172)
HSLhsl(272, 99%, 34%)
CMYKcmyk(47%, 99%, 0%, 33%)
LABlab(27.5 62.4 -67.5)
LCHlch(27.5 91.9 312.7)
OKLCHoklch(0.405 0.218 297.6)
Decimal6029740
Display P3color(display-p3 0.361 0.004 0.675)

Copy-ready code

/* CSS */
color: #5c01ac;
background-color: #5c01ac;
/* Tailwind (arbitrary) */
class="text-[#5c01ac] bg-[#5c01ac]"
/* SCSS */
$brand: #5c01ac;
/* SwiftUI */
Color(red: 0.361, green: 0.004, blue: 0.675)
/* Android */
Color.parseColor("#5c01ac")
/* Flutter */
Color(0xFF5C01AC)
/* Python / OpenCV (BGR) */
(172, 1, 92)

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 #5c01ac · 10.22:1
Use #ffffffAAA at every size.
Aa
White text · 10.22:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.06:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5c01ac as text scores 10.22:1 on white and 2.06:1 on black.

Accessibility — WCAG contrast

Aa
#5c01ac on white: 10.22:1
AA ✓ pass · AA-large · AAA
Aa
#5c01ac on black: 2.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0041B0
deuteranopia · #003FA9
tritanopia · #464163

Color scale — 50 to 950

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

#F8F1FE
#F0E3FC
#E0C0FB
#CA8FFE
#B058FE
#9620FE
#8201F3
#6C01CB
#5c01ac
#410675
#280349
Base = 800Lightest = 50 · #F8F1FEDarkest = 950 · #280349
:root {
  --brand-50: #F8F1FE;
  --brand-100: #F0E3FC;
  --brand-200: #E0C0FB;
  --brand-300: #CA8FFE;
  --brand-400: #B058FE;
  --brand-500: #9620FE;
  --brand-600: #8201F3;
  --brand-700: #6C01CB;
  --brand-800: #5c01ac;
  --brand-900: #410675;
  --brand-950: #280349;
  --brand: #5c01ac;
  --brand-ink: #ffffff;
}

Colors that work with #5c01ac

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#F8F4FA
Tinted page background
Border#D8C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#92CC00
Second voice, not a rival
Dark variant#44017F
Hover, pressed, headers
Light variant#F3E6FF
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 #5c01ac

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
  • Text on black or near-black surfaces
  • 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#51AC01
Analogous left#0601AC
Analogous right#AC01A6
Split-complement 1#A6AC01
Split-complement 2#01AC06
Triadic 1#AC5C01
Triadic 2#01AC5C
Tetradic#AC0601

RGB percentages

Red36.1%
Green0.4%
Blue67.5%

CMYK percentages

Cyan46.5%
Magenta99.4%
Yellow0.0%
Key (black)32.5%

Color previews

#5c01ac text on a black background

contrast 2.06:1

Card sample

#5c01ac text on a white background

contrast 10.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(92, 1, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(92, 1, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5c01ac;
background: linear-gradient(135deg, #5c01ac, #AC018A);

Monochromatic scale

Palettes built from #5c01ac

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.

#5c01ac 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.

#5c01ac, answered

What color is #5c01ac?

#5c01ac is a dark electric violet, closest to Indigo (ΔE2000 6.4). It sits at 272° on the hue wheel with 99% saturation and 34% lightness, which reads as cool.

What is the RGB value of #5c01ac?

rgb(92, 1, 172) — 92 red, 1 green and 172 blue out of 255, or 36.1% / 0.4% / 67.5% by channel.

Is #5c01ac a light or a dark color?

It is a dark color. Relative luminance is 0.0528 and perceived brightness is 30%, so white text on it reaches 10.22:1.

Should I use black or white text on #5c01ac?

White. It scores 10.22:1 against #5c01ac, versus 2.06:1 for black — AAA at any size.

What is the complementary color of #5c01ac?

#51AC01 sits directly opposite on the wheel. Softer options are the split-complements #A6AC01 and #01AC06, which give the same contrast with far less vibration.

What colors go well with #5c01ac?

For interface work: #F8F4FA as the surface, #D8C0ED for borders, #754B9B for secondary text, #92CC00 as an accent and #44017F for hover and pressed states. For a palette, the analogous pair #0601AC and #AC01A6 stays calm, while #51AC01 is the loudest partner.

What is #5c01ac in CMYK for printing?

cmyk(47%, 99%, 0%, 33%). 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 #5c01ac warm or cool?

Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9A01AC; nudged cooler, #1D00AD.

Work with #5c01ac in the Color Lab