Skip to content

#ffc91f

a balanced, electric yellow · cool · closest name: gold

RGB
255, 201, 31
HSL
46°, 100%, 56%
CMYK
0, 21, 88, 0
Luminance
0.6313

Every format

HEX#ffc91f
RGBrgb(255, 201, 31)
HSLhsl(46, 100%, 56%)
CMYKcmyk(0%, 21%, 88%, 0%)
LABlab(83.5 5.6 80.8)
LCHlch(83.5 80.9 86.1)
OKLCHoklch(0.860 0.171 88.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffc91f on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#ffc91f on black: 13.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green78.8%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta21.2%
Yellow87.8%
Key (black)0.0%

Color previews

#ffc91f text on a black background

contrast 13.63:1

Card sample

#ffc91f text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffc91f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffc91f in the Color Lab