Skip to content

#ffaf28

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

RGB
255, 175, 40
HSL
38°, 100%, 58%
CMYK
0, 31, 84, 0
Luminance
0.5207

Every format

HEX#ffaf28
RGBrgb(255, 175, 40)
HSLhsl(38, 100%, 58%)
CMYKcmyk(0%, 31%, 84%, 0%)
LABlab(77.3 19.3 73.6)
LCHlch(77.3 76.1 75.3)
OKLCHoklch(0.812 0.163 73.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green68.6%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow84.3%
Key (black)0.0%

Color previews

#ffaf28 text on a black background

contrast 11.41:1

Card sample

#ffaf28 text on a white background

contrast 1.84:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaf28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaf28 in the Color Lab