Skip to content

#ffaf50

a light, electric orange · warm · closest name: peru

RGB
255, 175, 80
HSL
33°, 100%, 66%
CMYK
0, 31, 69, 0
Luminance
0.5250

Every format

HEX#ffaf50
RGBrgb(255, 175, 80)
HSLhsl(33, 100%, 66%)
CMYKcmyk(0%, 31%, 69%, 0%)
LABlab(77.6 20.8 58.8)
LCHlch(77.6 62.4 70.5)
OKLCHoklch(0.814 0.143 67.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffaf50 on white: 1.83:1
AA ✗ fail · AA-large · AAA
Aa
#ffaf50 on black: 11.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green68.6%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta31.4%
Yellow68.6%
Key (black)0.0%

Color previews

#ffaf50 text on a black background

contrast 11.50:1

Card sample

#ffaf50 text on a white background

contrast 1.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffaf50

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffaf50 in the Color Lab