Skip to content

#f0f3af

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

RGB
240, 243, 175
HSL
63°, 74%, 82%
CMYK
1, 0, 28, 5
Luminance
0.8572

Every format

HEX#f0f3af
RGBrgb(240, 243, 175)
HSLhsl(63, 74%, 82%)
CMYKcmyk(1%, 0%, 28%, 5%)
LABlab(94.2 -11.4 32.6)
LCHlch(94.2 34.5 109.4)
OKLCHoklch(0.946 0.087 110.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f3af on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f0f3af on black: 18.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green95.3%
Blue68.6%

CMYK percentages

Cyan1.2%
Magenta0.0%
Yellow28.0%
Key (black)4.7%

Color previews

#f0f3af text on a black background

contrast 18.14:1

Card sample

#f0f3af text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f3af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f3af in the Color Lab