Skip to content

#f6f2af

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

RGB
246, 242, 175
HSL
57°, 80%, 83%
CMYK
0, 2, 29, 4
Luminance
0.8619

Every format

HEX#f6f2af
RGBrgb(246, 242, 175)
HSLhsl(57, 80%, 83%)
CMYKcmyk(0%, 2%, 29%, 4%)
LABlab(94.4 -8.7 32.9)
LCHlch(94.4 34.0 104.9)
OKLCHoklch(0.949 0.085 105.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f6f2af on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#f6f2af on black: 18.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.5%
Green94.9%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow28.9%
Key (black)3.5%

Color previews

#f6f2af text on a black background

contrast 18.24:1

Card sample

#f6f2af text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f6f2af

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f6f2af in the Color Lab