Skip to content

#ffff8b

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

RGB
255, 255, 139
HSL
60°, 100%, 77%
CMYK
0, 0, 46, 0
Luminance
0.9464

Every format

HEX#ffff8b
RGBrgb(255, 255, 139)
HSLhsl(60, 100%, 77%)
CMYKcmyk(0%, 0%, 46%, 0%)
LABlab(97.9 -15.6 55.1)
LCHlch(97.9 57.2 105.8)
OKLCHoklch(0.976 0.139 108.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green100.0%
Blue54.5%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow45.5%
Key (black)0.0%

Color previews

#ffff8b text on a black background

contrast 19.93:1

Card sample

#ffff8b text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffff8b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffff8b in the Color Lab