Skip to content

#ffffaf

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

RGB
255, 255, 175
HSL
60°, 100%, 84%
CMYK
0, 0, 31, 0
Luminance
0.9588

Every format

HEX#ffffaf
RGBrgb(255, 255, 175)
HSLhsl(60, 100%, 84%)
CMYKcmyk(0%, 0%, 31%, 0%)
LABlab(98.4 -11.8 38.3)
LCHlch(98.4 40.1 107.1)
OKLCHoklch(0.982 0.100 108.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffffaf on white: 1.04:1
AA ✗ fail · AA-large · AAA
Aa
#ffffaf on black: 20.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green100.0%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow31.4%
Key (black)0.0%

Color previews

#ffffaf text on a black background

contrast 20.18:1

Card sample

#ffffaf text on a white background

contrast 1.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffffaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffffaf in the Color Lab