#ffff9d
a light, electric yellow · cool · closest name: khaki
RGB
255, 255, 157
HSL
60°, 100%, 81%
CMYK
0, 0, 38, 0
Luminance
0.9521
Every format
| HEX | #ffff9d |
| RGB | rgb(255, 255, 157) |
| HSL | hsl(60, 100%, 81%) |
| CMYK | cmyk(0%, 0%, 38%, 0%) |
| LAB | lab(98.1 -13.8 46.8) |
| LCH | lch(98.1 48.8 106.5) |
| OKLCH | oklch(0.979 0.120 108.4) |
Copy-ready code
/* CSS */
color: #ffff9d;
background-color: #ffff9d;
/* Tailwind (arbitrary) */
class="text-[#ffff9d] bg-[#ffff9d]"
/* SCSS */
$brand: #ffff9d;
/* SwiftUI */
Color(red: 1.000, green: 1.000, blue: 0.616)
/* Android */
Color.parseColor("#ffff9d")Accessibility — WCAG contrast
Aa
#ffff9d on white: 1.05:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffff9d on black: 20.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green100.0%
Blue61.6%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow38.4%
Key (black)0.0%
Color previews
#ffff9d text on a black background
contrast 20.04:1
Card sample
#ffff9d text on a white background
contrast 1.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffff9d;
Background color
Panel with #ffff9d background
background-color: #ffff9d;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffff9d;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 255, 157, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 255, 157, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffff9d; background: linear-gradient(135deg, #ffff9d, #BEFF9D);