#F8E271#F8E271
#F8E271 is a very light, vivid yellow. Relative luminance 0.755; OKLCH L 90.9% C 0.135 H 98.5°. Best body text is #000000 at 16.11:1 contrast (WCAG AA passes).
Color values
| HEX | #F8E271 |
|---|---|
| RGB | rgb(248, 226, 113) |
| HSL | hsl(50, 91%, 71%) |
| HSV | hsv(50, 54%, 97%) |
| CMYK | cmyk(0%, 8.9%, 54.4%, 2.7%) |
| CIE-LAB | lab(89.65, -6.24, 57.17) |
| CIE-LCH | lch(89.65, 57.51, 96.23°) |
| OKLab | oklab(90.86% -0.02 0.1339) |
| OKLCH | oklch(90.86% 0.135 98.5) |
| XYZ | xyz(68.8908, 75.5442, 26.5723) |
| Luminance | 0.7554 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellow Tan
#FFE36E
ΔE00 1.67
Sand Yellow
#FCE166
ΔE00 1.73
Pale Gold
#FDDE6C
ΔE00 2.47
Dull Yellow
#EEDC5B
ΔE00 2.70
Sandy
#F1DA7A
ΔE00 2.85
Sandy Yellow
#FDEE73
ΔE00 3.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F8E271 #7187F8
analogous
#F89E71 #F8E271 #CAF871
triadic
#F8E271 #71F8E2 #E271F8
tetradic
#F8E271 #71F89E #7187F8 #F871CA
square
#F8E271 #71F89E #7187F8 #F871CA
split-complementary
#F8E271 #71CAF8 #9E71F8
monochromatic
#E3C00B #F5D637 #F8E271 #FBEEAB #FEF9E2
Accessibility & contrast
On white
1.30
#F8E271 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
16.11
#F8E271 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F8E271
16.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F8E271 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F8E271 | 1.00 | 1.30 | 16.11 | 16.11 |
| #FFFFFF | 1.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 16.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 16.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F5DD66
Deuteranopia (green-blind)
#FBE576
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#E1E1E1
Design tokens & code
CSS
--color: #f8e271; /* rgb */ color: rgb(248, 226, 113); /* oklch */ color: oklch(90.9% 0.135 98.5);
Tailwind
colors: {
custom: {
50: '#fdea9d',
500: '#f8e271',
950: '#000000',
},
}SCSS
$custom: #f8e271; $custom-light: #fdea9d; $custom-dark: #000000;
JSON
{
"hex": "#f8e271",
"rgb": {
"r": 248,
"g": 226,
"b": 113
},
"hsl": {
"h": 50.222,
"s": 90.604,
"l": 70.784
},
"oklch": {
"l": 0.90863,
"c": 0.13535,
"h": 98.5
},
"luminance": 0.75541
}Semantic roles & 50–950 ramp
primary
#F8E271
secondary
#3A53D3
accent
#25E600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F