Skip to content

#ff0022

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

RGB
255, 0, 34
HSL
352°, 100%, 50%
CMYK
0, 100, 87, 0
Luminance
0.2138

Every format

HEX#ff0022
RGBrgb(255, 0, 34)
HSLhsl(352, 100%, 50%)
CMYKcmyk(0%, 100%, 87%, 0%)
LABlab(53.4 80.4 56.3)
LCHlch(53.4 98.2 35.0)
OKLCHoklch(0.629 0.256 26.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ff0022 on white: 3.98:1
AA ✗ fail · AA-large · AAA
Aa
#ff0022 on black: 5.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green0.0%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta100.0%
Yellow86.7%
Key (black)0.0%

Color previews

#ff0022 text on a black background

contrast 5.28:1

Card sample

#ff0022 text on a white background

contrast 3.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ff0022

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ff0022 in the Color Lab