Skip to content

#ff271f

a balanced, electric red · warm · closest name: red

RGB
255, 39, 31
HSL
2°, 100%, 56%
CMYK
0, 85, 88, 0
Luminance
0.2281

Every format

HEX#ff271f
RGBrgb(255, 39, 31)
HSLhsl(2, 100%, 56%)
CMYKcmyk(0%, 85%, 88%, 0%)
LABlab(54.9 76.0 58.8)
LCHlch(54.9 96.0 37.7)
OKLCHoklch(0.640 0.245 28.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff271f on white: 3.78:1
AA ✗ fail · AA-large · AAA
Aa
#ff271f on black: 5.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green15.3%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta84.7%
Yellow87.8%
Key (black)0.0%

Color previews

#ff271f text on a black background

contrast 5.56:1

Card sample

#ff271f text on a white background

contrast 3.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 39, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 39, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ff271f;
background: linear-gradient(135deg, #ff271f, #FFBC1F);

Monochromatic scale

Palettes built from #ff271f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff271f in the Color Lab