Skip to content

#ffca18

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

RGB
255, 202, 24
HSL
46°, 100%, 55%
CMYK
0, 21, 91, 0
Luminance
0.6357

Every format

HEX#ffca18
RGBrgb(255, 202, 24)
HSLhsl(46, 100%, 55%)
CMYKcmyk(0%, 21%, 91%, 0%)
LABlab(83.7 4.9 82.2)
LCHlch(83.7 82.4 86.6)
OKLCHoklch(0.862 0.173 89.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffca18 on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#ffca18 on black: 13.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green79.2%
Blue9.4%

CMYK percentages

Cyan0.0%
Magenta20.8%
Yellow90.6%
Key (black)0.0%

Color previews

#ffca18 text on a black background

contrast 13.71:1

Card sample

#ffca18 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffca18

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffca18 in the Color Lab