Skip to content

#ceba40

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

RGB
206, 186, 64
HSL
52°, 59%, 53%
CMYK
0, 10, 69, 19
Luminance
0.4861

Every format

HEX#ceba40
RGBrgb(206, 186, 64)
HSLhsl(52, 59%, 53%)
CMYKcmyk(0%, 10%, 69%, 19%)
LABlab(75.2 -6.5 61.6)
LCHlch(75.2 61.9 96.1)
OKLCHoklch(0.784 0.140 99.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ceba40 on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#ceba40 on black: 10.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green72.9%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta9.7%
Yellow68.9%
Key (black)19.2%

Color previews

#ceba40 text on a black background

contrast 10.72:1

Card sample

#ceba40 text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 186, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 186, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ceba40;
background: linear-gradient(135deg, #ceba40, #83CE40);

Monochromatic scale

Palettes built from #ceba40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ceba40 in the Color Lab