Skip to content

#f0db75

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

RGB
240, 219, 117
HSL
50°, 80%, 70%
CMYK
0, 9, 51, 6
Luminance
0.7047

Every format

HEX#f0db75
RGBrgb(240, 219, 117)
HSLhsl(50, 80%, 70%)
CMYKcmyk(0%, 9%, 51%, 6%)
LABlab(87.2 -5.6 52.3)
LCHlch(87.2 52.6 96.1)
OKLCHoklch(0.888 0.125 97.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0db75 on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#f0db75 on black: 15.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green85.9%
Blue45.9%

CMYK percentages

Cyan0.0%
Magenta8.8%
Yellow51.3%
Key (black)5.9%

Color previews

#f0db75 text on a black background

contrast 15.09:1

Card sample

#f0db75 text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0db75

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0db75 in the Color Lab