#F8F972#F8F972
#F8F972 is a very light, vivid yellow. Relative luminance 0.889; OKLCH L 95.6% C 0.157 H 109.4°. Best body text is #000000 at 18.78:1 contrast (WCAG AA passes).
Color values
| HEX | #F8F972 |
|---|---|
| RGB | rgb(248, 249, 114) |
| HSL | hsl(60, 92%, 71%) |
| HSV | hsv(60, 54%, 98%) |
| CMYK | cmyk(0.4%, 0%, 54.2%, 2.4%) |
| CIE-LAB | lab(95.55, -17.49, 63.50) |
| CIE-LCH | lch(95.55, 65.87, 105.40°) |
| OKLab | oklab(95.56% -0.052 0.1476) |
| OKLCH | oklch(95.56% 0.157 109.4) |
| XYZ | xyz(75.6263, 88.9246, 29.0967) |
| Luminance | 0.8892 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Custard
#FFFD78
ΔE00 1.16
Butter Yellow
#FFFD74
ΔE00 1.18
Light Yellow
#FFFE7A
ΔE00 1.23
Pastel Yellow
#FFFE71
ΔE00 1.34
Banana (survey)
#FFFF7E
ΔE00 1.48
Faded Yellow
#FEFF7F
ΔE00 1.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F8F972 #7372F9
analogous
#F9B672 #F8F972 #B4F972
triadic
#F8F972 #72F8F9 #F972F8
tetradic
#F8F972 #72F9B6 #7372F9 #F972B4
square
#F8F972 #72F9B6 #7372F9 #F972B4
split-complementary
#F8F972 #72B4F9 #B672F9
monochromatic
#E5E70A #F5F737 #F8F972 #FBFBAD #FEFEE2
Accessibility & contrast
On white
1.12
#F8F972 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.78
#F8F972 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F8F972
18.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F8F972 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F8F972 | 1.00 | 1.12 | 18.78 | 18.78 |
| #FFFFFF | 1.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFF064
Deuteranopia (green-blind)
#FFF479
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F2F2F2
Design tokens & code
CSS
--color: #f8f972; /* rgb */ color: rgb(248, 249, 114); /* oklch */ color: oklch(95.6% 0.157 109.4);
Tailwind
colors: {
custom: {
50: '#fdfb9f',
500: '#f8f972',
950: '#000000',
},
}SCSS
$custom: #f8f972; $custom-light: #fdfb9f; $custom-dark: #000000;
JSON
{
"hex": "#f8f972",
"rgb": {
"r": 248,
"g": 249,
"b": 114
},
"hsl": {
"h": 60.444,
"s": 91.837,
"l": 71.176
},
"oklch": {
"l": 0.95557,
"c": 0.15653,
"h": 109.4
},
"luminance": 0.88923
}Semantic roles & 50–950 ramp
primary
#F8F972
secondary
#3C3BD4
accent
#00E602
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580