Skip to content

#4d0ace

a dark, electric violet · warm · closest name: blue

RGB
77, 10, 206
HSL
261°, 91%, 42%
CMYK
63, 95, 0, 19
Luminance
0.0625

Every format

HEX#4d0ace
RGBrgb(77, 10, 206)
HSLhsl(261, 91%, 42%)
CMYKcmyk(63%, 95%, 0%, 19%)
LABlab(30.0 67.5 -83.5)
LCHlch(30.0 107.4 309.0)
OKLCHoklch(0.429 0.248 283.6)

Copy-ready code

/* CSS */
color: #4d0ace;
background-color: #4d0ace;
/* Tailwind (arbitrary) */
class="text-[#4d0ace] bg-[#4d0ace]"
/* SCSS */
$brand: #4d0ace;
/* SwiftUI */
Color(red: 0.302, green: 0.039, blue: 0.808)
/* Android */
Color.parseColor("#4d0ace")

Accessibility — WCAG contrast

Aa
#4d0ace on white: 9.33:1
AA ✓ pass · AA-large · AAA
Aa
#4d0ace on black: 2.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red30.2%
Green3.9%
Blue80.8%

CMYK percentages

Cyan62.6%
Magenta95.1%
Yellow0.0%
Key (black)19.2%

Color previews

#4d0ace text on a black background

contrast 2.25:1

Card sample

#4d0ace text on a white background

contrast 9.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(77, 10, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(77, 10, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4d0ace;
background: linear-gradient(135deg, #4d0ace, #CE0ACD);

Monochromatic scale

Palettes built from #4d0ace

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4d0ace in the Color Lab