Skip to content

#ffff9e

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

RGB
255, 255, 158
HSL
60°, 100%, 81%
CMYK
0, 0, 38, 0
Luminance
0.9525

Every format

HEX#ffff9e
RGBrgb(255, 255, 158)
HSLhsl(60, 100%, 81%)
CMYKcmyk(0%, 0%, 38%, 0%)
LABlab(98.1 -13.7 46.3)
LCHlch(98.1 48.3 106.5)
OKLCHoklch(0.979 0.119 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffff9e on white: 1.05:1
AA ✗ fail · AA-large · AAA
Aa
#ffff9e on black: 20.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green100.0%
Blue62.0%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow38.0%
Key (black)0.0%

Color previews

#ffff9e text on a black background

contrast 20.05:1

Card sample

#ffff9e text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffff9e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff9e in the Color Lab