#F8E371#F8E371
#F8E371 is a very light, vivid yellow. Relative luminance 0.761; OKLCH L 91.1% C 0.136 H 99.0°. Best body text is #000000 at 16.22:1 contrast (WCAG AA passes).
Color values
| HEX | #F8E371 |
|---|---|
| RGB | rgb(248, 227, 113) |
| HSL | hsl(51, 91%, 71%) |
| HSV | hsv(51, 54%, 97%) |
| CMYK | cmyk(0%, 8.5%, 54.4%, 2.7%) |
| CIE-LAB | lab(89.90, -6.74, 57.46) |
| CIE-LCH | lch(89.90, 57.86, 96.69°) |
| OKLab | oklab(91.06% -0.0214 0.1345) |
| OKLCH | oklch(91.06% 0.136 99) |
| XYZ | xyz(69.1635, 76.0896, 26.6632) |
| Luminance | 0.7609 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellow Tan
#FFE36E
ΔE00 1.87
Sand Yellow
#FCE166
ΔE00 1.88
Dull Yellow
#EEDC5B
ΔE00 2.63
Pale Gold
#FDDE6C
ΔE00 2.78
Sandy Yellow
#FDEE73
ΔE00 2.82
Sandy
#F1DA7A
ΔE00 3.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F8E371 #7186F8
analogous
#F89F71 #F8E371 #C9F871
triadic
#F8E371 #71F8E3 #E371F8
tetradic
#F8E371 #71F89F #7186F8 #F871C9
square
#F8E371 #71F89F #7186F8 #F871C9
split-complementary
#F8E371 #71C9F8 #9F71F8
monochromatic
#E3C20B #F5D837 #F8E371 #FBEFAB #FEF9E2
Accessibility & contrast
On white
1.29
#F8E371 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
16.22
#F8E371 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F8E371
16.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F8E371 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F8E371 | 1.00 | 1.29 | 16.22 | 16.22 |
| #FFFFFF | 1.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 16.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 16.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F6DE66
Deuteranopia (green-blind)
#FBE576
Tritanopia (blue-blind)
#FFD5C9
Achromatopsia (no color)
#E2E2E2
Design tokens & code
CSS
--color: #f8e371; /* rgb */ color: rgb(248, 227, 113); /* oklch */ color: oklch(91.1% 0.136 99.0);
Tailwind
colors: {
custom: {
50: '#fdeb9d',
500: '#f8e371',
950: '#000000',
},
}SCSS
$custom: #f8e371; $custom-light: #fdeb9d; $custom-dark: #000000;
JSON
{
"hex": "#f8e371",
"rgb": {
"r": 248,
"g": 227,
"b": 113
},
"hsl": {
"h": 50.667,
"s": 90.604,
"l": 70.784
},
"oklch": {
"l": 0.91064,
"c": 0.1362,
"h": 99
},
"luminance": 0.76087
}Semantic roles & 50–950 ramp
primary
#F8E371
secondary
#3A52D3
accent
#24E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F