Skip to content

#4f1fdf

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

RGB
79, 31, 223
HSL
255°, 76%, 50%
CMYK
65, 86, 0, 13
Luminance
0.0797

Every format

HEX#4f1fdf
RGBrgb(79, 31, 223)
HSLhsl(255, 76%, 50%)
CMYKcmyk(65%, 86%, 0%, 13%)
LABlab(33.9 66.7 -86.9)
LCHlch(33.9 109.6 307.5)
OKLCHoklch(0.461 0.256 281.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f1fdf on white: 8.10:1
AA ✓ pass · AA-large · AAA
Aa
#4f1fdf on black: 2.59:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green12.2%
Blue87.5%

CMYK percentages

Cyan64.6%
Magenta86.1%
Yellow0.0%
Key (black)12.5%

Color previews

#4f1fdf text on a black background

contrast 2.59:1

Card sample

#4f1fdf text on a white background

contrast 8.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f1fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f1fdf in the Color Lab