Skip to content

#cec968

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

RGB
206, 201, 104
HSL
57°, 51%, 61%
CMYK
0, 2, 50, 19
Luminance
0.5589

Every format

HEX#cec968
RGBrgb(206, 201, 104)
HSLhsl(57, 51%, 61%)
CMYKcmyk(0%, 2%, 50%, 19%)
LABlab(79.5 -11.4 48.6)
LCHlch(79.5 50.0 103.2)
OKLCHoklch(0.820 0.120 106.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec968 on white: 1.72:1
AA ✗ fail · AA-large · AAA
Aa
#cec968 on black: 12.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green78.8%
Blue40.8%

CMYK percentages

Cyan0.0%
Magenta2.4%
Yellow49.5%
Key (black)19.2%

Color previews

#cec968 text on a black background

contrast 12.18:1

Card sample

#cec968 text on a white background

contrast 1.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(206, 201, 104, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(206, 201, 104, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cec968;
background: linear-gradient(135deg, #cec968, #8FCE68);

Monochromatic scale

Palettes built from #cec968

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec968 in the Color Lab