Skip to content

#cbaa39

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

RGB
203, 170, 57
HSL
46°, 58%, 51%
CMYK
0, 16, 72, 20
Luminance
0.4174

Every format

HEX#cbaa39
RGBrgb(203, 170, 57)
HSLhsl(46, 58%, 51%)
CMYKcmyk(0%, 16%, 72%, 20%)
LABlab(70.7 0.2 59.7)
LCHlch(70.7 59.7 89.8)
OKLCHoklch(0.748 0.133 92.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbaa39 on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#cbaa39 on black: 9.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green66.7%
Blue22.4%

CMYK percentages

Cyan0.0%
Magenta16.3%
Yellow71.9%
Key (black)20.4%

Color previews

#cbaa39 text on a black background

contrast 9.35:1

Card sample

#cbaa39 text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaa39

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaa39 in the Color Lab