Skip to content

#4c01ff

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

RGB
76, 1, 255
HSL
258°, 100%, 50%
CMYK
70, 100, 0, 0
Luminance
0.0878

Every format

HEX#4c01ff
RGBrgb(76, 1, 255)
HSLhsl(258, 100%, 50%)
CMYKcmyk(70%, 100%, 0%, 0%)
LABlab(35.5 80.2 -102.3)
LCHlch(35.5 130.1 308.1)
OKLCHoklch(0.482 0.297 277.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4c01ff on white: 7.62:1
AA ✓ pass · AA-large · AAA
Aa
#4c01ff on black: 2.76:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.8%
Green0.4%
Blue100.0%

CMYK percentages

Cyan70.2%
Magenta99.6%
Yellow0.0%
Key (black)0.0%

Color previews

#4c01ff text on a black background

contrast 2.76:1

Card sample

#4c01ff text on a white background

contrast 7.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(76, 1, 255, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(76, 1, 255, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4c01ff;
background: linear-gradient(135deg, #4c01ff, #F501FF);

Monochromatic scale

Palettes built from #4c01ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4c01ff in the Color Lab