#F0D271#F0D271
#F0D271 is a very light, vivid yellow. Relative luminance 0.658; OKLCH L 86.9% C 0.122 H 92.6°. Best body text is #000000 at 14.16:1 contrast (WCAG AA passes).
Color values
| HEX | #F0D271 |
|---|---|
| RGB | rgb(240, 210, 113) |
| HSL | hsl(46, 81%, 69%) |
| HSV | hsv(46, 53%, 94%) |
| CMYK | cmyk(0%, 12.5%, 52.9%, 5.9%) |
| CIE-LAB | lab(84.90, -1.37, 51.40) |
| CIE-LCH | lch(84.90, 51.42, 91.53°) |
| OKLab | oklab(86.94% -0.0054 0.1215) |
| OKLCH | oklch(86.94% 0.122 92.6) |
| XYZ | xyz(61.9648, 65.8136, 25.0590) |
| Luminance | 0.6581 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy
#F1DA7A
ΔE00 2.52
Wheat (survey)
#FBDD7E
ΔE00 2.55
Light Mustard
#F7D560
ΔE00 2.78
Sand (survey)
#E2CA76
ΔE00 3.14
Pale Gold
#FDDE6C
ΔE00 3.47
Maize
#F4D054
ΔE00 3.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0D271 #718FF0
analogous
#F09371 #F0D271 #CFF071
triadic
#F0D271 #71F0D2 #D271F0
tetradic
#F0D271 #71F093 #718FF0 #F071CF
square
#F0D271 #71F093 #718FF0 #F071CF
split-complementary
#F0D271 #71CFF0 #9371F0
monochromatic
#D1A516 #EAC03A #F0D271 #F6E4A8 #FCF5E0
Accessibility & contrast
On white
1.48
#F0D271 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.16
#F0D271 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0D271
14.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0D271 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0D271 | 1.00 | 1.48 | 14.16 | 14.16 |
| #FFFFFF | 1.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E4CF68
Deuteranopia (green-blind)
#ECD875
Tritanopia (blue-blind)
#FFC5BB
Achromatopsia (no color)
#D4D4D4
Design tokens & code
CSS
--color: #f0d271; /* rgb */ color: rgb(240, 210, 113); /* oklch */ color: oklch(86.9% 0.122 92.6);
Tailwind
colors: {
custom: {
50: '#f7df9c',
500: '#f0d271',
950: '#000000',
},
}SCSS
$custom: #f0d271; $custom-light: #f7df9c; $custom-dark: #000000;
JSON
{
"hex": "#f0d271",
"rgb": {
"r": 240,
"g": 210,
"b": 113
},
"hsl": {
"h": 45.827,
"s": 80.892,
"l": 69.216
},
"oklch": {
"l": 0.86944,
"c": 0.12159,
"h": 92.6
},
"luminance": 0.65811
}Semantic roles & 50–950 ramp
primary
#F0D271
secondary
#3C5DC9
accent
#3BDD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F