Color #ffff40
A vivid, highly saturated light yellow.
Conversions
#ffff40
rgb(255, 255, 64)
hsl(60, 100%, 62.5%)
hsv(60, 74.9%, 100%)
cmyk(0%, 0%, 74.9%, 0%)
lab(97.29, -20.34, 84.11)
lch(97.29, 86.53, 103.59)
oklch(97%, 0.1949, 109.54)
hwb(60, 25.1%, 0%)
Harmony colors
Accessibility
Black text reads better on this background (19.63:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#ffff90 · ΔE 7.7
Deuteranopia
#ffff9d · ΔE 9.5
Tritanopia
#ffb5bc · ΔE 49.5
Achromatopsia
#f7f7f7 · ΔE 29.4
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #ffff40;
bg-[#ffff40]
Related colors
Frequently asked questions
#ffff40 (#ffff40) is rgb(255, 255, 64) in RGB.
No, #ffff40 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #ffff40, or check how it holds up for accessibility.