#F0D862#F0D862
#F0D862 is a very light, vivid yellow. Relative luminance 0.685; OKLCH L 88.0% C 0.140 H 97.9°. Best body text is #000000 at 14.70:1 contrast (WCAG AA passes).
Color values
| HEX | #F0D862 |
|---|---|
| RGB | rgb(240, 216, 98) |
| HSL | hsl(50, 83%, 66%) |
| HSV | hsv(50, 59%, 94%) |
| CMYK | cmyk(0%, 10%, 59.2%, 5.9%) |
| CIE-LAB | lab(86.27, -5.55, 59.90) |
| CIE-LCH | lch(86.27, 60.16, 95.29°) |
| OKLab | oklab(87.97% -0.0192 0.1382) |
| OKLCH | oklch(87.97% 0.14 97.9) |
| XYZ | xyz(62.6982, 68.5216, 21.4763) |
| Luminance | 0.6852 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 2.12
Sand Yellow
#FCE166
ΔE00 2.29
Pale Gold
#FDDE6C
ΔE00 2.57
Light Mustard
#F7D560
ΔE00 2.73
Light Gold
#FDDC5C
ΔE00 2.78
Yellow Tan
#FFE36E
ΔE00 2.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0D862 #627AF0
analogous
#F09162 #F0D862 #C1F062
triadic
#F0D862 #62F0D8 #D862F0
tetradic
#F0D862 #62F091 #627AF0 #F062C1
square
#F0D862 #62F091 #627AF0 #F062C1
split-complementary
#F0D862 #62C1F0 #9162F0
monochromatic
#C5A713 #EBCA2A #F0D862 #F5E69A #FBF4D2
Accessibility & contrast
On white
1.43
#F0D862 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.70
#F0D862 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0D862
14.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0D862 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0D862 | 1.00 | 1.43 | 14.70 | 14.70 |
| #FFFFFF | 1.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.70 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.70 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#EBD356
Deuteranopia (green-blind)
#F1DB68
Tritanopia (blue-blind)
#FFCABE
Achromatopsia (no color)
#D8D8D8
Design tokens & code
CSS
--color: #f0d862; /* rgb */ color: rgb(240, 216, 98); /* oklch */ color: oklch(88.0% 0.140 97.9);
Tailwind
colors: {
custom: {
50: '#f8e393',
500: '#f0d862',
950: '#000000',
},
}SCSS
$custom: #f0d862; $custom-light: #f8e393; $custom-dark: #000000;
JSON
{
"hex": "#f0d862",
"rgb": {
"r": 240,
"g": 216,
"b": 98
},
"hsl": {
"h": 49.859,
"s": 82.558,
"l": 66.275
},
"oklch": {
"l": 0.87974,
"c": 0.13955,
"h": 97.9
},
"luminance": 0.68519
}Semantic roles & 50–950 ramp
primary
#F0D862
secondary
#344CC2
accent
#2BDF07
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F