Skip to content

#cbaa21

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

RGB
203, 170, 33
HSL
48°, 72%, 46%
CMYK
0, 16, 84, 20
Luminance
0.4156

Every format

HEX#cbaa21
RGBrgb(203, 170, 33)
HSLhsl(48, 72%, 46%)
CMYKcmyk(0%, 16%, 84%, 20%)
LABlab(70.6 -0.7 67.7)
LCHlch(70.6 67.7 90.6)
OKLCHoklch(0.746 0.145 94.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbaa21 on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#cbaa21 on black: 9.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green66.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta16.3%
Yellow83.7%
Key (black)20.4%

Color previews

#cbaa21 text on a black background

contrast 9.31:1

Card sample

#cbaa21 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cbaa21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaa21 in the Color Lab