Skip to content

#5c03cc

a dark, electric violet · cool · closest name: Medium Blue

RGB
92, 3, 204
HSL
267°, 97%, 41%
CMYK
55, 99, 0, 20
Luminance
0.0670

At a glance

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

Hex
#5c03cc
Hue
267°
violet
Saturation
97%
electric
Lightness
41%
dark
Brightness
80%
HSV value
Perceived
33%
weighted brightness
Luminance
0.0670
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
White
8.97:1
Closest name
Medium Blue
ΔE2000 6.4
Where it sits
Hue267° of 360°
Saturation97%
Lightness41%
Temperature
Warm ← → Cool69% 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#5c03cc
RGBrgb(92, 3, 204)
HSLhsl(267, 97%, 41%)
CMYKcmyk(55%, 99%, 0%, 20%)
LABlab(31.1 69.2 -80.5)
LCHlch(31.1 106.2 310.7)
OKLCHoklch(0.439 0.247 290.2)
Decimal6030284
Display P3color(display-p3 0.361 0.012 0.800)

Copy-ready code

/* CSS */
color: #5c03cc;
background-color: #5c03cc;
/* Tailwind (arbitrary) */
class="text-[#5c03cc] bg-[#5c03cc]"
/* SCSS */
$brand: #5c03cc;
/* SwiftUI */
Color(red: 0.361, green: 0.012, blue: 0.800)
/* Android */
Color.parseColor("#5c03cc")
/* Flutter */
Color(0xFF5C03CC)
/* Python / OpenCV (BGR) */
(204, 3, 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 #5c03cc · 8.97:1
Use #ffffffAAA at every size.
Aa
White text · 8.97:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.34:1
AA fail · AA large fail · AAA fail
Reading the other direction: #5c03cc as text scores 8.97:1 on white and 2.34:1 on black.

Accessibility — WCAG contrast

Aa
#5c03cc on white: 8.97:1
AA ✓ pass · AA-large · AAA
Aa
#5c03cc on black: 2.34:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #004CD1
deuteranopia · #0045C9
tritanopia · #2D5177

Color scale — 50 to 950

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

#F7F1FD
#EEE4FC
#DBC1FB
#C190FD
#A259FD
#8222FC
#6D04F1
#5c03cc
#4902A1
#370774
#220448
Base = 700Lightest = 50 · #F7F1FDDarkest = 950 · #220448
:root {
  --brand-50: #F7F1FD;
  --brand-100: #EEE4FC;
  --brand-200: #DBC1FB;
  --brand-300: #C190FD;
  --brand-400: #A259FD;
  --brand-500: #8222FC;
  --brand-600: #6D04F1;
  --brand-700: #5c03cc;
  --brand-800: #4902A1;
  --brand-900: #370774;
  --brand-950: #220448;
  --brand: #5c03cc;
  --brand-ink: #ffffff;
}

Colors that work with #5c03cc

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#F7F4FA
Tinted page background
Border#D4C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#A5CC00
Second voice, not a rival
Dark variant#39027E
Hover, pressed, headers
Light variant#F1E6FF
Selected rows, tints
Dark surface#1B1424
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 #5c03cc

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#73CC03
Analogous left#030ECC
Analogous right#C103CC
Split-complement 1#CCC103
Split-complement 2#0ECC03
Triadic 1#CC5C03
Triadic 2#03CC5C
Tetradic#CC030E

RGB percentages

Red36.1%
Green1.2%
Blue80.0%

CMYK percentages

Cyan54.9%
Magenta98.5%
Yellow0.0%
Key (black)20.0%

Color previews

#5c03cc text on a black background

contrast 2.34:1

Card sample

#5c03cc text on a white background

contrast 8.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5c03cc

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.

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

#5c03cc, answered

What color is #5c03cc?

#5c03cc is a dark electric violet, closest to Medium Blue (ΔE2000 6.4). It sits at 267° on the hue wheel with 97% saturation and 41% lightness, which reads as cool.

What is the RGB value of #5c03cc?

rgb(92, 3, 204) — 92 red, 3 green and 204 blue out of 255, or 36.1% / 1.2% / 80% by channel.

Is #5c03cc a light or a dark color?

It is a dark color. Relative luminance is 0.0670 and perceived brightness is 33%, so white text on it reaches 8.97:1.

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

White. It scores 8.97:1 against #5c03cc, versus 2.34:1 for black — AAA at any size.

What is the complementary color of #5c03cc?

#73CC03 sits directly opposite on the wheel. Softer options are the split-complements #CCC103 and #0ECC03, which give the same contrast with far less vibration.

What colors go well with #5c03cc?

For interface work: #F7F4FA as the surface, #D4C0ED for borders, #6E4B9B for secondary text, #A5CC00 as an accent and #39027E for hover and pressed states. For a palette, the analogous pair #030ECC and #C103CC stays calm, while #73CC03 is the loudest partner.

What is #5c03cc in CMYK for printing?

cmyk(55%, 99%, 0%, 20%). 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 #5c03cc warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #A603CC; nudged cooler, #1101CE.

Work with #5c03cc in the Color Lab