Skip to content

#f2a40c

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

RGB
242, 164, 12
HSL
40°, 91%, 50%
CMYK
0, 32, 95, 5
Luminance
0.4545

Every format

HEX#f2a40c
RGBrgb(242, 164, 12)
HSLhsl(40, 91%, 50%)
CMYKcmyk(0%, 32%, 95%, 5%)
LABlab(73.2 19.1 75.7)
LCHlch(73.2 78.0 75.8)
OKLCHoklch(0.776 0.162 74.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2a40c on white: 2.08:1
AA ✗ fail · AA-large · AAA
Aa
#f2a40c on black: 10.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green64.3%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta32.2%
Yellow95.0%
Key (black)5.1%

Color previews

#f2a40c text on a black background

contrast 10.09:1

Card sample

#f2a40c text on a white background

contrast 2.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2a40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2a40c in the Color Lab