Skip to content

#f07f21

a balanced, electric orange · warm · closest name: chocolate

RGB
240, 127, 33
HSL
27°, 87%, 54%
CMYK
0, 47, 86, 6
Luminance
0.3381

Every format

HEX#f07f21
RGBrgb(240, 127, 33)
HSLhsl(27, 87%, 54%)
CMYKcmyk(0%, 47%, 86%, 6%)
LABlab(64.8 37.9 64.7)
LCHlch(64.8 75.0 59.7)
OKLCHoklch(0.711 0.168 53.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f07f21 on white: 2.71:1
AA ✗ fail · AA-large · AAA
Aa
#f07f21 on black: 7.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green49.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta47.1%
Yellow86.3%
Key (black)5.9%

Color previews

#f07f21 text on a black background

contrast 7.76:1

Card sample

#f07f21 text on a white background

contrast 2.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 127, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 127, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f07f21;
background: linear-gradient(135deg, #f07f21, #D7F021);

Monochromatic scale

Palettes built from #f07f21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f07f21 in the Color Lab