Skip to content

#cebc21

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

RGB
206, 188, 33
HSL
54°, 72%, 47%
CMYK
0, 9, 84, 19
Luminance
0.4920

Every format

HEX#cebc21
RGBrgb(206, 188, 33)
HSLhsl(54, 72%, 47%)
CMYKcmyk(0%, 9%, 84%, 19%)
LABlab(75.6 -8.8 72.0)
LCHlch(75.6 72.5 96.9)
OKLCHoklch(0.786 0.158 102.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cebc21 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#cebc21 on black: 10.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green73.7%
Blue12.9%

CMYK percentages

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

Color previews

#cebc21 text on a black background

contrast 10.84:1

Card sample

#cebc21 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cebc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cebc21 in the Color Lab