#ffff8c
a light, electric yellow · cool · closest name: khaki
RGB
255, 255, 140
HSL
60°, 100%, 78%
CMYK
0, 0, 45, 0
Luminance
0.9467
Every format
| HEX | #ffff8c |
| RGB | rgb(255, 255, 140) |
| HSL | hsl(60, 100%, 78%) |
| CMYK | cmyk(0%, 0%, 45%, 0%) |
| LAB | lab(97.9 -15.5 54.6) |
| LCH | lch(97.9 56.8 105.8) |
| OKLCH | oklch(0.977 0.138 108.7) |
Copy-ready code
/* CSS */
color: #ffff8c;
background-color: #ffff8c;
/* Tailwind (arbitrary) */
class="text-[#ffff8c] bg-[#ffff8c]"
/* SCSS */
$brand: #ffff8c;
/* SwiftUI */
Color(red: 1.000, green: 1.000, blue: 0.549)
/* Android */
Color.parseColor("#ffff8c")Accessibility — WCAG contrast
Aa
#ffff8c on white: 1.05:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffff8c on black: 19.93:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green100.0%
Blue54.9%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow45.1%
Key (black)0.0%
Color previews
#ffff8c text on a black background
contrast 19.93:1
Card sample
#ffff8c text on a white background
contrast 1.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffff8c;
Background color
Panel with #ffff8c background
background-color: #ffff8c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffff8c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 255, 140, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 255, 140, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffff8c; background: linear-gradient(135deg, #ffff8c, #B3FF8C);