Skip to content

#cba40c

a dark, electric yellow · cool · closest name: orange

RGB
203, 164, 12
HSL
48°, 89%, 42%
CMYK
0, 19, 94, 20
Luminance
0.3927

Every format

HEX#cba40c
RGBrgb(203, 164, 12)
HSLhsl(48, 89%, 42%)
CMYKcmyk(0%, 19%, 94%, 20%)
LABlab(69.0 2.1 70.7)
LCHlch(69.0 70.7 88.3)
OKLCHoklch(0.733 0.148 91.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cba40c on white: 2.37:1
AA ✗ fail · AA-large · AAA
Aa
#cba40c on black: 8.85:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.6%
Green64.3%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta19.2%
Yellow94.1%
Key (black)20.4%

Color previews

#cba40c text on a black background

contrast 8.85:1

Card sample

#cba40c text on a white background

contrast 2.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cba40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cba40c in the Color Lab