Skip to content

#cb9a21

a balanced, vivid yellow · warm · closest name: peru

RGB
203, 154, 33
HSL
43°, 72%, 46%
CMYK
0, 24, 84, 20
Luminance
0.3592

Every format

HEX#cb9a21
RGBrgb(203, 154, 33)
HSLhsl(43, 72%, 46%)
CMYKcmyk(0%, 24%, 84%, 20%)
LABlab(66.5 7.9 64.2)
LCHlch(66.5 64.7 83.0)
OKLCHoklch(0.714 0.138 84.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cb9a21 on white: 2.57:1
AA ✗ fail · AA-large · AAA
Aa
#cb9a21 on black: 8.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green60.4%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta24.1%
Yellow83.7%
Key (black)20.4%

Color previews

#cb9a21 text on a black background

contrast 8.18:1

Card sample

#cb9a21 text on a white background

contrast 2.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cb9a21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cb9a21 in the Color Lab