#F0E171#F0E171
#F0E171 is a very light, vivid yellow. Relative luminance 0.736; OKLCH L 90.0% C 0.134 H 101.8°. Best body text is #000000 at 15.71:1 contrast (WCAG AA passes).
Color values
| HEX | #F0E171 |
|---|---|
| RGB | rgb(240, 225, 113) |
| HSL | hsl(53, 81%, 69%) |
| HSV | hsv(53, 53%, 94%) |
| CMYK | cmyk(0%, 6.3%, 52.9%, 5.9%) |
| CIE-LAB | lab(88.72, -8.96, 55.91) |
| CIE-LCH | lch(88.72, 56.63, 99.11°) |
| OKLab | oklab(89.97% -0.0273 0.1313) |
| OKLCH | oklch(89.97% 0.134 101.8) |
| XYZ | xyz(65.8431, 73.5703, 26.3517) |
| Luminance | 0.7357 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 2.46
Sandy Yellow
#FDEE73
ΔE00 3.03
Sandy
#F1DA7A
ΔE00 3.35
Sand Yellow
#FCE166
ΔE00 3.40
Yellow Tan
#FFE36E
ΔE00 3.57
Khaki (CSS)
#F0E68C
ΔE00 3.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0E171 #7180F0
analogous
#F0A271 #F0E171 #C0F071
triadic
#F0E171 #71F0E1 #E171F0
tetradic
#F0E171 #71F0A2 #7180F0 #F071C0
square
#F0E171 #71F0A2 #7180F0 #F071C0
split-complementary
#F0E171 #71C0F0 #A271F0
monochromatic
#D1BB16 #EAD53A #F0E171 #F6EDA8 #FCF8E0
Accessibility & contrast
On white
1.34
#F0E171 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.71
#F0E171 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0E171
15.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0E171 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0E171 | 1.00 | 1.34 | 15.71 | 15.71 |
| #FFFFFF | 1.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F2DB66
Deuteranopia (green-blind)
#F7E276
Tritanopia (blue-blind)
#FFD4C8
Achromatopsia (no color)
#DFDFDF
Design tokens & code
CSS
--color: #f0e171; /* rgb */ color: rgb(240, 225, 113); /* oklch */ color: oklch(90.0% 0.134 101.8);
Tailwind
colors: {
custom: {
50: '#f7ea9d',
500: '#f0e171',
950: '#000000',
},
}SCSS
$custom: #f0e171; $custom-light: #f7ea9d; $custom-dark: #000000;
JSON
{
"hex": "#f0e171",
"rgb": {
"r": 240,
"g": 225,
"b": 113
},
"hsl": {
"h": 52.913,
"s": 80.892,
"l": 69.216
},
"oklch": {
"l": 0.89966,
"c": 0.13411,
"h": 101.8
},
"luminance": 0.73568
}Semantic roles & 50–950 ramp
primary
#F0E171
secondary
#3C4DC9
accent
#21DD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F