#F0D151#F0D151
#F0D151 is a very light, vivid yellow. Relative luminance 0.647; OKLCH L 86.4% C 0.148 H 95.4°. Best body text is #000000 at 13.94:1 contrast (WCAG AA passes).
Color values
| HEX | #F0D151 |
|---|---|
| RGB | rgb(240, 209, 81) |
| HSL | hsl(48, 84%, 63%) |
| HSV | hsv(48, 66%, 94%) |
| CMYK | cmyk(0%, 12.9%, 66.3%, 5.9%) |
| CIE-LAB | lab(84.34, -3.05, 65.09) |
| CIE-LCH | lch(84.34, 65.16, 92.69°) |
| OKLab | oklab(86.4% -0.014 0.1469) |
| OKLCH | oklch(86.4% 0.148 95.4) |
| XYZ | xyz(60.2237, 64.7234, 17.1037) |
| Luminance | 0.6472 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 1.47
Light Mustard
#F7D560
ΔE00 1.92
Light Gold
#FDDC5C
ΔE00 2.63
Pale Gold
#FDDE6C
ΔE00 3.45
Sand Yellow
#FCE166
ΔE00 3.71
Dull Yellow
#EEDC5B
ΔE00 4.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0D151 #5170F0
analogous
#F08151 #F0D151 #BFF051
triadic
#F0D151 #51F0D1 #D151F0
tetradic
#F0D151 #51F081 #5170F0 #F051BF
square
#F0D151 #51F081 #5170F0 #F051BF
split-complementary
#F0D151 #51BFF0 #8151F0
monochromatic
#B79610 #EBC219 #F0D151 #F5E089 #FAEFC2
Accessibility & contrast
On white
1.51
#F0D151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.94
#F0D151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0D151
13.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0D151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0D151 | 1.00 | 1.51 | 13.94 | 13.94 |
| #FFFFFF | 1.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E5CD41
Deuteranopia (green-blind)
#EDD758
Tritanopia (blue-blind)
#FFC2B6
Achromatopsia (no color)
#D2D2D2
Design tokens & code
CSS
--color: #f0d151; /* rgb */ color: rgb(240, 209, 81); /* oklch */ color: oklch(86.4% 0.148 95.4);
Tailwind
colors: {
custom: {
50: '#f9de88',
500: '#f0d151',
950: '#000000',
},
}SCSS
$custom: #f0d151; $custom-light: #f9de88; $custom-dark: #000000;
JSON
{
"hex": "#f0d151",
"rgb": {
"r": 240,
"g": 209,
"b": 81
},
"hsl": {
"h": 48.302,
"s": 84.127,
"l": 62.941
},
"oklch": {
"l": 0.86403,
"c": 0.14751,
"h": 95.4
},
"luminance": 0.6472
}Semantic roles & 50–950 ramp
primary
#F0D151
secondary
#2F49B6
accent
#30E105
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F