#F8F042
A light, vivid yellow closely aligning with Yellow.
About #F8F042
Visually, #F8F042 is defined as a vivid yellow. It is closely associated with the named CSS color Yellow. Its digital footprint relies on 248 parts red, 240 parts green, and 66 parts blue light.
Translating this color to physical media requires the CMYK color model. To reproduce this shade on paper, a printer utilizes 0% cyan and 3% magenta inks. Always request a physical proof before doing a large print run with this exact code.
Contrast ratios determine whether this color is safe for typography. Because it is a light color, it is generally recommended to use #000000 text. Be sure to check our contrast matrix below to see exactly how it performs against common backgrounds.
Color Space Conversions
HEX#F8F042
RGB248, 240, 66
HSL57.4°, 92.9%, 61.6%
CMYK0%, 3%, 73%, 3%
HSV57.4°, 73.4%, 97.3%
LAB92.9, -15.9, 79.2
XYZ70.9, 82.7, 17.4
Decimal16314434
Color Harmonies
Tints, Shades & Tones
Tints (Adding White)
Shades (Adding Black)
WCAG Contrast Accessibility
1.20:1
Text on #FFFFFF
FAIL
17.53:1
Text on #000000
AAA
1.14:1
Text on #F8FAFC
FAIL
14.91:1
Text on #0F172A
AAA
CSS Implementation
.bg-color {
background-color: #F8F042;
}
.text-color {
color: #F8F042;
}
.border-color {
border: 2px solid #F8F042;
}