Skip to content

#ceb821

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

RGB
206, 184, 33
HSL
52°, 72%, 47%
CMYK
0, 11, 84, 19
Luminance
0.4751

Every format

HEX#ceb821
RGBrgb(206, 184, 33)
HSLhsl(52, 72%, 47%)
CMYKcmyk(0%, 11%, 84%, 19%)
LABlab(74.5 -6.7 71.1)
LCHlch(74.5 71.4 95.4)
OKLCHoklch(0.778 0.155 100.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ceb821 on white: 2.00:1
AA ✗ fail · AA-large · AAA
Aa
#ceb821 on black: 10.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green72.2%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta10.7%
Yellow84.0%
Key (black)19.2%

Color previews

#ceb821 text on a black background

contrast 10.50:1

Card sample

#ceb821 text on a white background

contrast 2.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 184, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 184, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ceb821;
background: linear-gradient(135deg, #ceb821, #71CE21);

Monochromatic scale

Palettes built from #ceb821

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ceb821 in the Color Lab