Skip to content

#9d2f45

a dark, vivid red · warm · closest name: firebrick

RGB
157, 47, 69
HSL
348°, 54%, 40%
CMYK
0, 70, 56, 38
Luminance
0.0963

Every format

HEX#9d2f45
RGBrgb(157, 47, 69)
HSLhsl(348, 54%, 40%)
CMYKcmyk(0%, 70%, 56%, 38%)
LABlab(37.2 46.9 12.9)
LCHlch(37.2 48.6 15.4)
OKLCHoklch(0.477 0.145 12.9)

Copy-ready code

/* CSS */
color: #9d2f45;
background-color: #9d2f45;
/* Tailwind (arbitrary) */
class="text-[#9d2f45] bg-[#9d2f45]"
/* SCSS */
$brand: #9d2f45;
/* SwiftUI */
Color(red: 0.616, green: 0.184, blue: 0.271)
/* Android */
Color.parseColor("#9d2f45")

Accessibility — WCAG contrast

Aa
#9d2f45 on white: 7.18:1
AA ✓ pass · AA-large · AAA
Aa
#9d2f45 on black: 2.93:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red61.6%
Green18.4%
Blue27.1%

CMYK percentages

Cyan0.0%
Magenta70.1%
Yellow56.1%
Key (black)38.4%

Color previews

#9d2f45 text on a black background

contrast 2.93:1

Card sample

#9d2f45 text on a white background

contrast 7.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(157, 47, 69, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(157, 47, 69, 0.45);
Border & gradient
Gradient panel
border: 3px solid #9d2f45;
background: linear-gradient(135deg, #9d2f45, #9D622F);

Monochromatic scale

Palettes built from #9d2f45

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #9d2f45 in the Color Lab