Skip to content

#ffaf2d

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

RGB
255, 175, 45
HSL
37°, 100%, 59%
CMYK
0, 31, 82, 0
Luminance
0.5211

Every format

HEX#ffaf2d
RGBrgb(255, 175, 45)
HSLhsl(37, 100%, 59%)
CMYKcmyk(0%, 31%, 82%, 0%)
LABlab(77.3 19.4 72.1)
LCHlch(77.3 74.7 74.9)
OKLCHoklch(0.812 0.161 73.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green68.6%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow82.4%
Key (black)0.0%

Color previews

#ffaf2d text on a black background

contrast 11.42:1

Card sample

#ffaf2d text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaf2d in the Color Lab