Skip to content

#5000af

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

RGB
80, 0, 175
HSL
267°, 100%, 34%
CMYK
54, 100, 0, 31
Luminance
0.0480

Every format

HEX#5000af
RGBrgb(80, 0, 175)
HSLhsl(267, 100%, 34%)
CMYKcmyk(54%, 100%, 0%, 31%)
LABlab(26.2 62.3 -71.6)
LCHlch(26.2 94.9 311.0)
OKLCHoklch(0.393 0.221 291.2)

Copy-ready code

/* CSS */
color: #5000af;
background-color: #5000af;
/* Tailwind (arbitrary) */
class="text-[#5000af] bg-[#5000af]"
/* SCSS */
$brand: #5000af;
/* SwiftUI */
Color(red: 0.314, green: 0.000, blue: 0.686)
/* Android */
Color.parseColor("#5000af")

Accessibility — WCAG contrast

Aa
#5000af on white: 10.71:1
AA ✓ pass · AA-large · AAA
Aa
#5000af on black: 1.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.4%
Green0.0%
Blue68.6%

CMYK percentages

Cyan54.3%
Magenta100.0%
Yellow0.0%
Key (black)31.4%

Color previews

#5000af text on a black background

contrast 1.96:1

Card sample

#5000af text on a white background

contrast 10.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5000af;
Background color
Panel with #5000af background
background-color: #5000af;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5000af;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(80, 0, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(80, 0, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5000af;
background: linear-gradient(135deg, #5000af, #AF0099);

Monochromatic scale

Palettes built from #5000af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #5000af in the Color Lab