Skip to content

#f2c45f

a light, electric yellow · warm · closest name: khaki

RGB
242, 196, 95
HSL
41°, 85%, 66%
CMYK
0, 19, 61, 5
Luminance
0.5918

Every format

HEX#f2c45f
RGBrgb(242, 196, 95)
HSLhsl(41, 85%, 66%)
CMYKcmyk(0%, 19%, 61%, 5%)
LABlab(81.4 5.3 55.8)
LCHlch(81.4 56.1 84.5)
OKLCHoklch(0.842 0.130 84.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2c45f on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#f2c45f on black: 12.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green76.9%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta19.0%
Yellow60.7%
Key (black)5.1%

Color previews

#f2c45f text on a black background

contrast 12.84:1

Card sample

#f2c45f text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 196, 95, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 196, 95, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2c45f;
background: linear-gradient(135deg, #f2c45f, #BEF25F);

Monochromatic scale

Palettes built from #f2c45f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2c45f in the Color Lab