Skip to content

#ffaf2f

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

RGB
255, 175, 47
HSL
37°, 100%, 59%
CMYK
0, 31, 82, 0
Luminance
0.5213

Every format

HEX#ffaf2f
RGBrgb(255, 175, 47)
HSLhsl(37, 100%, 59%)
CMYKcmyk(0%, 31%, 82%, 0%)
LABlab(77.4 19.4 71.5)
LCHlch(77.4 74.1 74.8)
OKLCHoklch(0.812 0.160 73.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffaf2f on white: 1.84:1
AA ✗ fail · AA-large · AAA
Aa
#ffaf2f on black: 11.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green68.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow81.6%
Key (black)0.0%

Color previews

#ffaf2f text on a black background

contrast 11.43:1

Card sample

#ffaf2f text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaf2f in the Color Lab