Skip to content

#4f0fef

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

RGB
79, 15, 239
HSL
257°, 88%, 50%
CMYK
67, 94, 0, 6
Luminance
0.0824

Every format

HEX#4f0fef
RGBrgb(79, 15, 239)
HSLhsl(257, 88%, 50%)
CMYKcmyk(67%, 94%, 0%, 6%)
LABlab(34.5 74.7 -95.1)
LCHlch(34.5 120.9 308.1)
OKLCHoklch(0.470 0.278 279.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#4f0fef on white: 7.93:1
AA ✓ pass · AA-large · AAA
Aa
#4f0fef on black: 2.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red31.0%
Green5.9%
Blue93.7%

CMYK percentages

Cyan66.9%
Magenta93.7%
Yellow0.0%
Key (black)6.3%

Color previews

#4f0fef text on a black background

contrast 2.65:1

Card sample

#4f0fef text on a white background

contrast 7.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #4f0fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #4f0fef in the Color Lab