Skip to content

#f6ffaf

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

RGB
246, 255, 175
HSL
67°, 100%, 84%
CMYK
4, 0, 31, 0
Luminance
0.9421

Every format

HEX#f6ffaf
RGBrgb(246, 255, 175)
HSLhsl(67, 100%, 84%)
CMYKcmyk(4%, 0%, 31%, 0%)
LABlab(97.7 -15.1 37.3)
LCHlch(97.7 40.3 112.1)
OKLCHoklch(0.975 0.101 113.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f6ffaf on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#f6ffaf on black: 19.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.5%
Green100.0%
Blue68.6%

CMYK percentages

Cyan3.5%
Magenta0.0%
Yellow31.4%
Key (black)0.0%

Color previews

#f6ffaf text on a black background

contrast 19.84:1

Card sample

#f6ffaf text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f6ffaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f6ffaf in the Color Lab