Skip to content

#c0ba21

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

RGB
192, 186, 33
HSL
58°, 71%, 44%
CMYK
0, 3, 83, 25
Luminance
0.4643

Every format

HEX#c0ba21
RGBrgb(192, 186, 33)
HSLhsl(58, 71%, 44%)
CMYKcmyk(0%, 3%, 83%, 25%)
LABlab(73.8 -13.8 70.0)
LCHlch(73.8 71.4 101.2)
OKLCHoklch(0.770 0.158 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c0ba21 on white: 2.04:1
AA ✗ fail · AA-large · AAA
Aa
#c0ba21 on black: 10.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red75.3%
Green72.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta3.1%
Yellow82.8%
Key (black)24.7%

Color previews

#c0ba21 text on a black background

contrast 10.29:1

Card sample

#c0ba21 text on a white background

contrast 2.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(192, 186, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(192, 186, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c0ba21;
background: linear-gradient(135deg, #c0ba21, #5CC021);

Monochromatic scale

Palettes built from #c0ba21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c0ba21 in the Color Lab