Skip to content

#cfb82f

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

RGB
207, 184, 47
HSL
51°, 63%, 50%
CMYK
0, 11, 77, 19
Luminance
0.4775

Every format

HEX#cfb82f
RGBrgb(207, 184, 47)
HSLhsl(51, 63%, 50%)
CMYKcmyk(0%, 11%, 77%, 19%)
LABlab(74.7 -5.8 67.3)
LCHlch(74.7 67.5 95.0)
OKLCHoklch(0.780 0.148 99.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cfb82f on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#cfb82f on black: 10.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red81.2%
Green72.2%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta11.1%
Yellow77.3%
Key (black)18.8%

Color previews

#cfb82f text on a black background

contrast 10.55:1

Card sample

#cfb82f text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(207, 184, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(207, 184, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cfb82f;
background: linear-gradient(135deg, #cfb82f, #7BCF2F);

Monochromatic scale

Palettes built from #cfb82f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cfb82f in the Color Lab