#F8F172#F8F172
#F8F172 is a very light, vivid yellow. Relative luminance 0.841; OKLCH L 93.9% C 0.148 H 106.0°. Best body text is #000000 at 17.82:1 contrast (WCAG AA passes).
Color values
| HEX | #F8F172 |
|---|---|
| RGB | rgb(248, 241, 114) |
| HSL | hsl(57, 91%, 71%) |
| HSV | hsv(57, 54%, 97%) |
| CMYK | cmyk(0%, 2.8%, 54%, 2.7%) |
| CIE-LAB | lab(93.49, -13.60, 61.15) |
| CIE-LCH | lch(93.49, 62.64, 102.54°) |
| OKLab | oklab(93.92% -0.041 0.1426) |
| OKLCH | oklch(93.92% 0.148 106) |
| XYZ | xyz(73.2061, 84.0842, 28.2900) |
| Luminance | 0.8408 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 1.09
Yellowish
#FAEE66
ΔE00 1.74
Sandy Yellow
#FDEE73
ΔE00 2.03
Manilla
#FFFA86
ΔE00 2.42
Custard
#FFFD78
ΔE00 2.59
Butter Yellow
#FFFD74
ΔE00 2.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F8F172 #7279F8
analogous
#F8AE72 #F8F172 #BCF872
triadic
#F8F172 #72F8F1 #F172F8
tetradic
#F8F172 #72F8AE #7279F8 #F872BC
square
#F8F172 #72F8AE #7279F8 #F872BC
split-complementary
#F8F172 #72BCF8 #AE72F8
monochromatic
#E4D90B #F5EB38 #F8F172 #FBF7AC #FEFCE2
Accessibility & contrast
On white
1.18
#F8F172 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.82
#F8F172 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F8F172
17.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F8F172 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F8F172 | 1.00 | 1.18 | 17.82 | 17.82 |
| #FFFFFF | 1.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE965
Deuteranopia (green-blind)
#FFEF79
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC
Design tokens & code
CSS
--color: #f8f172; /* rgb */ color: rgb(248, 241, 114); /* oklch */ color: oklch(93.9% 0.148 106.0);
Tailwind
colors: {
custom: {
50: '#fdf59e',
500: '#f8f172',
950: '#000000',
},
}SCSS
$custom: #f8f172; $custom-light: #fdf59e; $custom-dark: #000000;
JSON
{
"hex": "#f8f172",
"rgb": {
"r": 248,
"g": 241,
"b": 114
},
"hsl": {
"h": 56.866,
"s": 90.541,
"l": 70.98
},
"oklch": {
"l": 0.93915,
"c": 0.14834,
"h": 106
},
"luminance": 0.84082
}Semantic roles & 50–950 ramp
primary
#F8F172
secondary
#3B43D3
accent
#0CE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580