Skip to content

#ffcf24

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

RGB
255, 207, 36
HSL
47°, 100%, 57%
CMYK
0, 19, 86, 0
Luminance
0.6601

Every format

HEX#ffcf24
RGBrgb(255, 207, 36)
HSLhsl(47, 100%, 57%)
CMYKcmyk(0%, 19%, 86%, 0%)
LABlab(85.0 2.6 80.9)
LCHlch(85.0 80.9 88.2)
OKLCHoklch(0.872 0.172 91.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcf24 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#ffcf24 on black: 14.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green81.2%
Blue14.1%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow85.9%
Key (black)0.0%

Color previews

#ffcf24 text on a black background

contrast 14.20:1

Card sample

#ffcf24 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 207, 36, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 207, 36, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffcf24;
background: linear-gradient(135deg, #ffcf24, #9DFF24);

Monochromatic scale

Palettes built from #ffcf24

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf24 in the Color Lab