Skip to content

#4b0fd2

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

RGB
75, 15, 210
HSL
259°, 87%, 44%
CMYK
64, 93, 0, 18
Luminance
0.0649

Every format

HEX#4b0fd2
RGBrgb(75, 15, 210)
HSLhsl(259, 87%, 44%)
CMYKcmyk(64%, 93%, 0%, 18%)
LABlab(30.6 67.5 -84.9)
LCHlch(30.6 108.4 308.5)
OKLCHoklch(0.434 0.250 282.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4b0fd2 on white: 9.14:1
AA ✓ pass · AA-large · AAA
Aa
#4b0fd2 on black: 2.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red29.4%
Green5.9%
Blue82.4%

CMYK percentages

Cyan64.3%
Magenta92.9%
Yellow0.0%
Key (black)17.6%

Color previews

#4b0fd2 text on a black background

contrast 2.30:1

Card sample

#4b0fd2 text on a white background

contrast 9.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(75, 15, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(75, 15, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4b0fd2;
background: linear-gradient(135deg, #4b0fd2, #CD0FD2);

Monochromatic scale

Palettes built from #4b0fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4b0fd2 in the Color Lab