Skip to content

#ff0c2f

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

RGB
255, 12, 47
HSL
351°, 100%, 52%
CMYK
0, 95, 82, 0
Luminance
0.2173

Every format

HEX#ff0c2f
RGBrgb(255, 12, 47)
HSLhsl(351, 100%, 52%)
CMYKcmyk(0%, 95%, 82%, 0%)
LABlab(53.8 79.9 50.2)
LCHlch(53.8 94.3 32.1)
OKLCHoklch(0.632 0.253 24.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff0c2f on white: 3.93:1
AA ✗ fail · AA-large · AAA
Aa
#ff0c2f on black: 5.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green4.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta95.3%
Yellow81.6%
Key (black)0.0%

Color previews

#ff0c2f text on a black background

contrast 5.35:1

Card sample

#ff0c2f text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff0c2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff0c2f in the Color Lab