#F0D562#F0D562
#F0D562 is a very light, vivid yellow. Relative luminance 0.670; OKLCH L 87.4% C 0.137 H 96.2°. Best body text is #000000 at 14.40:1 contrast (WCAG AA passes).
Color values
| HEX | #F0D562 |
|---|---|
| RGB | rgb(240, 213, 98) |
| HSL | hsl(49, 83%, 66%) |
| HSV | hsv(49, 59%, 94%) |
| CMYK | cmyk(0%, 11.2%, 59.2%, 5.9%) |
| CIE-LAB | lab(85.50, -4.03, 59.05) |
| CIE-LCH | lch(85.50, 59.18, 93.90°) |
| OKLab | oklab(87.37% -0.0148 0.1364) |
| OKLCH | oklch(87.37% 0.137 96.2) |
| XYZ | xyz(61.9366, 66.9985, 21.2225) |
| Luminance | 0.6700 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Mustard
#F7D560
ΔE00 1.89
Pale Gold
#FDDE6C
ΔE00 2.44
Maize
#F4D054
ΔE00 2.66
Light Gold
#FDDC5C
ΔE00 2.67
Sand Yellow
#FCE166
ΔE00 2.81
Sandy
#F1DA7A
ΔE00 2.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0D562 #627DF0
analogous
#F08E62 #F0D562 #C4F062
triadic
#F0D562 #62F0D5 #D562F0
tetradic
#F0D562 #62F08E #627DF0 #F062C4
square
#F0D562 #62F08E #627DF0 #F062C4
split-complementary
#F0D562 #62C4F0 #8E62F0
monochromatic
#C5A313 #EBC62A #F0D562 #F5E49A #FBF3D2
Accessibility & contrast
On white
1.46
#F0D562 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.40
#F0D562 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0D562
14.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0D562 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0D562 | 1.00 | 1.46 | 14.40 | 14.40 |
| #FFFFFF | 1.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.40 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.40 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E8D156
Deuteranopia (green-blind)
#EFD967
Tritanopia (blue-blind)
#FFC7BC
Achromatopsia (no color)
#D6D6D6
Design tokens & code
CSS
--color: #f0d562; /* rgb */ color: rgb(240, 213, 98); /* oklch */ color: oklch(87.4% 0.137 96.2);
Tailwind
colors: {
custom: {
50: '#f8e192',
500: '#f0d562',
950: '#000000',
},
}SCSS
$custom: #f0d562; $custom-light: #f8e192; $custom-dark: #000000;
JSON
{
"hex": "#f0d562",
"rgb": {
"r": 240,
"g": 213,
"b": 98
},
"hsl": {
"h": 48.592,
"s": 82.558,
"l": 66.275
},
"oklch": {
"l": 0.87369,
"c": 0.13719,
"h": 96.2
},
"luminance": 0.66996
}Semantic roles & 50–950 ramp
primary
#F0D562
secondary
#344FC2
accent
#30DF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F