Skip to content

#ffaf1c

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

RGB
255, 175, 28
HSL
39°, 100%, 56%
CMYK
0, 31, 89, 0
Luminance
0.5200

Every format

HEX#ffaf1c
RGBrgb(255, 175, 28)
HSLhsl(39, 100%, 56%)
CMYKcmyk(0%, 31%, 89%, 0%)
LABlab(77.3 19.0 76.6)
LCHlch(77.3 78.9 76.0)
OKLCHoklch(0.811 0.166 74.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green68.6%
Blue11.0%

CMYK percentages

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

Color previews

#ffaf1c text on a black background

contrast 11.40:1

Card sample

#ffaf1c text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaf1c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaf1c in the Color Lab