Skip to content

#fff26f

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

RGB
255, 242, 111
HSL
55°, 100%, 72%
CMYK
0, 5, 57, 0
Luminance
0.8591

Every format

HEX#fff26f
RGBrgb(255, 242, 111)
HSLhsl(55, 100%, 72%)
CMYKcmyk(0%, 5%, 57%, 0%)
LABlab(94.3 -11.5 63.5)
LCHlch(94.3 64.6 100.3)
OKLCHoklch(0.947 0.151 103.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green94.9%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow56.5%
Key (black)0.0%

Color previews

#fff26f text on a black background

contrast 18.18:1

Card sample

#fff26f text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fff26f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fff26f in the Color Lab