Skip to content

#4f1069

a deep, vivid violet · warm · closest name: midnightblue

RGB
79, 16, 105
HSL
283°, 74%, 24%
CMYK
25, 85, 0, 59
Luminance
0.0305

Every format

HEX#4f1069
RGBrgb(79, 16, 105)
HSLhsl(283, 74%, 24%)
CMYKcmyk(25%, 85%, 0%, 59%)
LABlab(20.3 42.4 -37.6)
LCHlch(20.3 56.6 318.4)
OKLCHoklch(0.332 0.146 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f1069 on white: 13.04:1
AA ✓ pass · AA-large · AAA
Aa
#4f1069 on black: 1.61:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green6.3%
Blue41.2%

CMYK percentages

Cyan24.8%
Magenta84.8%
Yellow0.0%
Key (black)58.8%

Color previews

#4f1069 text on a black background

contrast 1.61:1

Card sample

#4f1069 text on a white background

contrast 13.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(79, 16, 105, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(79, 16, 105, 0.45);
Border & gradient
Gradient panel
border: 3px solid #4f1069;
background: linear-gradient(135deg, #4f1069, #691048);

Monochromatic scale

Palettes built from #4f1069

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f1069 in the Color Lab