#ffffaf
a light, electric yellow · cool · closest name: khaki
RGB
255, 255, 175
HSL
60°, 100%, 84%
CMYK
0, 0, 31, 0
Luminance
0.9588
Every format
| HEX | #ffffaf |
| RGB | rgb(255, 255, 175) |
| HSL | hsl(60, 100%, 84%) |
| CMYK | cmyk(0%, 0%, 31%, 0%) |
| LAB | lab(98.4 -11.8 38.3) |
| LCH | lch(98.4 40.1 107.1) |
| OKLCH | oklch(0.982 0.100 108.1) |
Copy-ready code
/* CSS */
color: #ffffaf;
background-color: #ffffaf;
/* Tailwind (arbitrary) */
class="text-[#ffffaf] bg-[#ffffaf]"
/* SCSS */
$brand: #ffffaf;
/* SwiftUI */
Color(red: 1.000, green: 1.000, blue: 0.686)
/* Android */
Color.parseColor("#ffffaf")Accessibility — WCAG contrast
Aa
#ffffaf on white: 1.04:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffffaf on black: 20.18:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green100.0%
Blue68.6%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow31.4%
Key (black)0.0%
Color previews
#ffffaf text on a black background
contrast 20.18:1
Card sample
#ffffaf text on a white background
contrast 1.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffffaf;
Background color
Panel with #ffffaf background
background-color: #ffffaf;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffffaf;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 255, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 255, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffffaf; background: linear-gradient(135deg, #ffffaf, #CAFFAF);