Skip to content

#f0d25b

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

RGB
240, 210, 91
HSL
48°, 83%, 65%
CMYK
0, 13, 62, 6
Luminance
0.6537

Every format

HEX#f0d25b
RGBrgb(240, 210, 91)
HSLhsl(48, 83%, 65%)
CMYKcmyk(0%, 13%, 62%, 6%)
LABlab(84.7 -3.0 61.2)
LCHlch(84.7 61.3 92.8)
OKLCHoklch(0.867 0.141 95.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0d25b on white: 1.49:1
AA ✗ fail · AA-large · AAA
Aa
#f0d25b on black: 14.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green82.4%
Blue35.7%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow62.1%
Key (black)5.9%

Color previews

#f0d25b text on a black background

contrast 14.07:1

Card sample

#f0d25b text on a white background

contrast 1.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 210, 91, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 210, 91, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0d25b;
background: linear-gradient(135deg, #f0d25b, #ABF05B);

Monochromatic scale

Palettes built from #f0d25b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0d25b in the Color Lab