Skip to content

#ffcb2f

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

RGB
255, 203, 47
HSL
45°, 100%, 59%
CMYK
0, 20, 82, 0
Luminance
0.6418

Every format

HEX#ffcb2f
RGBrgb(255, 203, 47)
HSLhsl(45, 100%, 59%)
CMYKcmyk(0%, 20%, 82%, 0%)
LABlab(84.1 4.9 77.3)
LCHlch(84.1 77.5 86.4)
OKLCHoklch(0.864 0.166 88.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcb2f on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#ffcb2f on black: 13.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green79.6%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta20.4%
Yellow81.6%
Key (black)0.0%

Color previews

#ffcb2f text on a black background

contrast 13.84:1

Card sample

#ffcb2f text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcb2f in the Color Lab