Skip to content

#ffaf1f

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

RGB
255, 175, 31
HSL
39°, 100%, 56%
CMYK
0, 31, 88, 0
Luminance
0.5202

Every format

HEX#ffaf1f
RGBrgb(255, 175, 31)
HSLhsl(39, 100%, 56%)
CMYKcmyk(0%, 31%, 88%, 0%)
LABlab(77.3 19.1 75.9)
LCHlch(77.3 78.3 75.9)
OKLCHoklch(0.811 0.165 74.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green68.6%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow87.8%
Key (black)0.0%

Color previews

#ffaf1f text on a black background

contrast 11.40:1

Card sample

#ffaf1f text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaf1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaf1f in the Color Lab