Skip to content

#ffaf2a

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

RGB
255, 175, 42
HSL
38°, 100%, 58%
CMYK
0, 31, 84, 0
Luminance
0.5209

Every format

HEX#ffaf2a
RGBrgb(255, 175, 42)
HSLhsl(38, 100%, 58%)
CMYKcmyk(0%, 31%, 84%, 0%)
LABlab(77.3 19.3 73.0)
LCHlch(77.3 75.5 75.2)
OKLCHoklch(0.812 0.162 73.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green68.6%
Blue16.5%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow83.5%
Key (black)0.0%

Color previews

#ffaf2a text on a black background

contrast 11.42:1

Card sample

#ffaf2a text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaf2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaf2a in the Color Lab