Skip to content

#f2eb5d

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

RGB
242, 235, 93
HSL
57°, 85%, 66%
CMYK
0, 3, 62, 5
Luminance
0.7908

Every format

HEX#f2eb5d
RGBrgb(242, 235, 93)
HSLhsl(57, 85%, 66%)
CMYKcmyk(0%, 3%, 62%, 5%)
LABlab(91.3 -14.5 67.6)
LCHlch(91.3 69.1 102.1)
OKLCHoklch(0.920 0.160 106.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2eb5d on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#f2eb5d on black: 16.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green92.2%
Blue36.5%

CMYK percentages

Cyan0.0%
Magenta2.9%
Yellow61.6%
Key (black)5.1%

Color previews

#f2eb5d text on a black background

contrast 16.82:1

Card sample

#f2eb5d text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 235, 93, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 235, 93, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2eb5d;
background: linear-gradient(135deg, #f2eb5d, #96F25D);

Monochromatic scale

Palettes built from #f2eb5d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2eb5d in the Color Lab