Skip to content
Kolorvia
#ffff40

Color #ffff40

A vivid, highly saturated light yellow.

Conversions

HEX
#ffff40
RGB
rgb(255, 255, 64)
HSL
hsl(60, 100%, 62.5%)
HSV / HSB
hsv(60, 74.9%, 100%)
CMYK
cmyk(0%, 0%, 74.9%, 0%)
LAB
lab(97.29, -20.34, 84.11)
LCH
lch(97.29, 86.53, 103.59)
OKLCH
oklch(97%, 0.1949, 109.54)
HWB
hwb(60, 25.1%, 0%)

Harmony colors

Complementary

#4040ff

Analogous

#ff9f40
#ffff40
#9fff40

Triadic

#ffff40
#40ffff
#ff40ff

Split-complementary

#ffff40
#409fff
#9f40ff

Tetradic

#ffff40
#40ff40
#4040ff
#ff40ff

Square

#ffff40
#40ff9f
#4040ff
#ff409f

Shades

Color #ffff40 mixed toward black.

#ffff0b
#d5d500
#9f9f00
#6a6a00
#353500

Tints

Color #ffff40 mixed toward white.

#ffff60
#ffff80
#ffff9f
#ffffbf
#ffffdf

Tones

Color #ffff40 mixed toward gray.

#efef50
#dfdf60
#cfcf70
#bfbf80
#afaf8f

Accessibility

Aa White text on this color
1.07:1
Aa Black text on this color
19.63:1

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

CSS
background-color: #ffff40;
Tailwind (arbitrary value)
bg-[#ffff40]

Related colors

Ivory #fffff0
Beige #f5f5dc
Light Goldenrod Yellow #fafad2
Light Yellow #ffffe0
Olive #808000
Yellow #ffff00

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

Build something with this color

Generate a full palette from #ffff40, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.