Skip to content

#c3af3b

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

RGB
195, 175, 59
HSL
51°, 54%, 50%
CMYK
0, 10, 70, 24
Luminance
0.4258

Every format

HEX#c3af3b
RGBrgb(195, 175, 59)
HSLhsl(51, 54%, 50%)
CMYKcmyk(0%, 10%, 70%, 24%)
LABlab(71.3 -5.8 59.3)
LCHlch(71.3 59.5 95.6)
OKLCHoklch(0.750 0.134 99.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c3af3b on white: 2.21:1
AA ✗ fail · AA-large · AAA
Aa
#c3af3b on black: 9.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red76.5%
Green68.6%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta10.3%
Yellow69.7%
Key (black)23.5%

Color previews

#c3af3b text on a black background

contrast 9.52:1

Card sample

#c3af3b text on a white background

contrast 2.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(195, 175, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(195, 175, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c3af3b;
background: linear-gradient(135deg, #c3af3b, #7CC33B);

Monochromatic scale

Palettes built from #c3af3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c3af3b in the Color Lab