Skip to content

#cbaf22

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

RGB
203, 175, 34
HSL
50°, 71%, 47%
CMYK
0, 14, 83, 20
Luminance
0.4347

Every format

HEX#cbaf22
RGBrgb(203, 175, 34)
HSLhsl(50, 71%, 47%)
CMYKcmyk(0%, 14%, 83%, 20%)
LABlab(71.9 -3.3 68.5)
LCHlch(71.9 68.6 92.8)
OKLCHoklch(0.756 0.148 96.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cbaf22 on white: 2.17:1
AA ✗ fail · AA-large · AAA
Aa
#cbaf22 on black: 9.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green68.6%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta13.8%
Yellow83.3%
Key (black)20.4%

Color previews

#cbaf22 text on a black background

contrast 9.69:1

Card sample

#cbaf22 text on a white background

contrast 2.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(203, 175, 34, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(203, 175, 34, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cbaf22;
background: linear-gradient(135deg, #cbaf22, #76CB22);

Monochromatic scale

Palettes built from #cbaf22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cbaf22 in the Color Lab