Skip to content

#d2cf0b

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

RGB
210, 207, 11
HSL
59°, 90%, 43%
CMYK
0, 1, 95, 18
Luminance
0.5835

Every format

HEX#d2cf0b
RGBrgb(210, 207, 11)
HSLhsl(59, 90%, 43%)
CMYKcmyk(0%, 1%, 95%, 18%)
LABlab(80.9 -17.0 80.0)
LCHlch(80.9 81.8 102.0)
OKLCHoklch(0.830 0.178 108.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cf0b on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#d2cf0b on black: 12.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green81.2%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta1.4%
Yellow94.8%
Key (black)17.6%

Color previews

#d2cf0b text on a black background

contrast 12.67:1

Card sample

#d2cf0b text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(210, 207, 11, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(210, 207, 11, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d2cf0b;
background: linear-gradient(135deg, #d2cf0b, #50D20B);

Monochromatic scale

Palettes built from #d2cf0b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cf0b in the Color Lab