Skip to content

#5d02af

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

RGB
93, 2, 175
HSL
272°, 98%, 35%
CMYK
47, 99, 0, 31
Luminance
0.0547

At a glance

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

Hex
#5d02af
Hue
272°
violet
Saturation
98%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
31%
weighted brightness
Luminance
0.0547
WCAG relative
Temperature
Cool
66/100 cool
Color family
Violet
Tone
Electric
Best ink
White
10.03:1
Closest name
Indigo
ΔE2000 6.9
Where it sits
Hue272° of 360°
Saturation98%
Lightness35%
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#5d02af
RGBrgb(93, 2, 175)
HSLhsl(272, 98%, 35%)
CMYKcmyk(47%, 99%, 0%, 31%)
LABlab(28.0 63.0 -68.5)
LCHlch(28.0 93.0 312.6)
OKLCHoklch(0.410 0.221 297.2)
Decimal6095535
Display P3color(display-p3 0.365 0.008 0.686)

Copy-ready code

/* CSS */
color: #5d02af;
background-color: #5d02af;
/* Tailwind (arbitrary) */
class="text-[#5d02af] bg-[#5d02af]"
/* SCSS */
$brand: #5d02af;
/* SwiftUI */
Color(red: 0.365, green: 0.008, blue: 0.686)
/* Android */
Color.parseColor("#5d02af")
/* Flutter */
Color(0xFF5D02AF)
/* Python / OpenCV (BGR) */
(175, 2, 93)

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

Accessibility — WCAG contrast

Aa
#5d02af on white: 10.03:1
AA ✓ pass · AA-large · AAA
Aa
#5d02af on black: 2.09:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0043B3
deuteranopia · #0040AC
tritanopia · #464265

Color scale — 50 to 950

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

#F8F1FD
#F0E4FC
#DFC1FB
#CA90FE
#AF59FD
#9521FC
#8103F2
#6B02CA
#5d02af
#400674
#280449
Base = 800Lightest = 50 · #F8F1FDDarkest = 950 · #280449
:root {
  --brand-50: #F8F1FD;
  --brand-100: #F0E4FC;
  --brand-200: #DFC1FB;
  --brand-300: #CA90FE;
  --brand-400: #AF59FD;
  --brand-500: #9521FC;
  --brand-600: #8103F2;
  --brand-700: #6B02CA;
  --brand-800: #5d02af;
  --brand-900: #400674;
  --brand-950: #280449;
  --brand: #5d02af;
  --brand-ink: #ffffff;
}

Colors that work with #5d02af

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#D7C0ED
Hairlines and dividers
Muted text#754B9B
Captions on the surface
Accent#94CC00
Second voice, not a rival
Dark variant#43017E
Hover, pressed, headers
Light variant#F3E6FF
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 #5d02af

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#54AF02
Analogous left#0702AF
Analogous right#AF02AA
Split-complement 1#AAAF02
Split-complement 2#02AF07
Triadic 1#AF5D02
Triadic 2#02AF5D
Tetradic#AF0702

RGB percentages

Red36.5%
Green0.8%
Blue68.6%

CMYK percentages

Cyan46.9%
Magenta98.9%
Yellow0.0%
Key (black)31.4%

Color previews

#5d02af text on a black background

contrast 2.09:1

Card sample

#5d02af text on a white background

contrast 10.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(93, 2, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(93, 2, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5d02af;
background: linear-gradient(135deg, #5d02af, #AF028E);

Monochromatic scale

Palettes built from #5d02af

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.

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

#5d02af, answered

What color is #5d02af?

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

What is the RGB value of #5d02af?

rgb(93, 2, 175) — 93 red, 2 green and 175 blue out of 255, or 36.5% / 0.8% / 68.6% by channel.

Is #5d02af a light or a dark color?

It is a dark color. Relative luminance is 0.0547 and perceived brightness is 31%, so white text on it reaches 10.03:1.

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

White. It scores 10.03:1 against #5d02af, versus 2.09:1 for black — AAA at any size.

What is the complementary color of #5d02af?

#54AF02 sits directly opposite on the wheel. Softer options are the split-complements #AAAF02 and #02AF07, which give the same contrast with far less vibration.

What colors go well with #5d02af?

For interface work: #F8F4FA as the surface, #D7C0ED for borders, #754B9B for secondary text, #94CC00 as an accent and #43017E for hover and pressed states. For a palette, the analogous pair #0702AF and #AF02AA stays calm, while #54AF02 is the loudest partner.

What is #5d02af in CMYK for printing?

cmyk(47%, 99%, 0%, 31%). 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 #5d02af 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 #9C02AF; nudged cooler, #1C00B1.

Work with #5d02af in the Color Lab