Skip to content

#ffcb2c

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

RGB
255, 203, 44
HSL
45°, 100%, 59%
CMYK
0, 20, 83, 0
Luminance
0.6415

Every format

HEX#ffcb2c
RGBrgb(255, 203, 44)
HSLhsl(45, 100%, 59%)
CMYKcmyk(0%, 20%, 83%, 0%)
LABlab(84.0 4.8 78.1)
LCHlch(84.0 78.3 86.5)
OKLCHoklch(0.864 0.167 88.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green79.6%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta20.4%
Yellow82.7%
Key (black)0.0%

Color previews

#ffcb2c text on a black background

contrast 13.83:1

Card sample

#ffcb2c text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcb2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcb2c in the Color Lab