Skip to content

#780270

a deep, electric magenta / pink · warm · closest name: purple

RGB
120, 2, 112
HSL
304°, 97%, 24%
CMYK
0, 98, 7, 53
Luminance
0.0521

Every format

HEX#780270
RGBrgb(120, 2, 112)
HSLhsl(304, 97%, 24%)
CMYKcmyk(0%, 98%, 7%, 53%)
LABlab(27.3 54.6 -30.3)
LCHlch(27.3 62.5 331.0)
OKLCHoklch(0.397 0.178 331.9)

Copy-ready code

/* CSS */
color: #780270;
background-color: #780270;
/* Tailwind (arbitrary) */
class="text-[#780270] bg-[#780270]"
/* SCSS */
$brand: #780270;
/* SwiftUI */
Color(red: 0.471, green: 0.008, blue: 0.439)
/* Android */
Color.parseColor("#780270")

Accessibility — WCAG contrast

Aa
#780270 on white: 10.29:1
AA ✓ pass · AA-large · AAA
Aa
#780270 on black: 2.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red47.1%
Green0.8%
Blue43.9%

CMYK percentages

Cyan0.0%
Magenta98.3%
Yellow6.7%
Key (black)52.9%

Color previews

#780270 text on a black background

contrast 2.04:1

Card sample

#780270 text on a white background

contrast 10.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(120, 2, 112, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(120, 2, 112, 0.45);
Border & gradient
Gradient panel
border: 3px solid #780270;
background: linear-gradient(135deg, #780270, #780221);

Monochromatic scale

Palettes built from #780270

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #780270 in the Color Lab