#ffffb3
a pale, electric yellow · cool · closest name: khaki
RGB
255, 255, 179
HSL
60°, 100%, 85%
CMYK
0, 0, 30, 0
Luminance
0.9603
Every format
| HEX | #ffffb3 |
| RGB | rgb(255, 255, 179) |
| HSL | hsl(60, 100%, 85%) |
| CMYK | cmyk(0%, 0%, 30%, 0%) |
| LAB | lab(98.5 -11.3 36.4) |
| LCH | lch(98.5 38.1 107.3) |
| OKLCH | oklch(0.983 0.096 108.0) |
Copy-ready code
/* CSS */
color: #ffffb3;
background-color: #ffffb3;
/* Tailwind (arbitrary) */
class="text-[#ffffb3] bg-[#ffffb3]"
/* SCSS */
$brand: #ffffb3;
/* SwiftUI */
Color(red: 1.000, green: 1.000, blue: 0.702)
/* Android */
Color.parseColor("#ffffb3")Accessibility — WCAG contrast
Aa
#ffffb3 on white: 1.04:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffffb3 on black: 20.21:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green100.0%
Blue70.2%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow29.8%
Key (black)0.0%
Color previews
#ffffb3 text on a black background
contrast 20.21:1
Card sample
#ffffb3 text on a white background
contrast 1.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffffb3;
Background color
Panel with #ffffb3 background
background-color: #ffffb3;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffffb3;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 255, 179, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 255, 179, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffffb3; background: linear-gradient(135deg, #ffffb3, #CCFFB3);