Skip to content

#970270

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

RGB
151, 2, 112
HSL
316°, 97%, 30%
CMYK
0, 99, 26, 41
Luminance
0.0779

Every format

HEX#970270
RGBrgb(151, 2, 112)
HSLhsl(316, 97%, 30%)
CMYKcmyk(0%, 99%, 26%, 41%)
LABlab(33.5 60.8 -20.1)
LCHlch(33.5 64.0 341.7)
OKLCHoklch(0.453 0.193 343.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#970270 on white: 8.21:1
AA ✓ pass · AA-large · AAA
Aa
#970270 on black: 2.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red59.2%
Green0.8%
Blue43.9%

CMYK percentages

Cyan0.0%
Magenta98.7%
Yellow25.8%
Key (black)40.8%

Color previews

#970270 text on a black background

contrast 2.56:1

Card sample

#970270 text on a white background

contrast 8.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #970270

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #970270 in the Color Lab