Skip to content

#ffcf08

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

RGB
255, 207, 8
HSL
48°, 100%, 52%
CMYK
0, 19, 97, 0
Luminance
0.6590

Every format

HEX#ffcf08
RGBrgb(255, 207, 8)
HSLhsl(48, 100%, 52%)
CMYKcmyk(0%, 19%, 97%, 0%)
LABlab(85.0 2.2 85.0)
LCHlch(85.0 85.1 88.5)
OKLCHoklch(0.871 0.177 91.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffcf08 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#ffcf08 on black: 14.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green81.2%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta18.8%
Yellow96.9%
Key (black)0.0%

Color previews

#ffcf08 text on a black background

contrast 14.18:1

Card sample

#ffcf08 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffcf08

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffcf08 in the Color Lab