#F0F862#F0F862
#F0F862 is a very light, vivid yellow. Relative luminance 0.865; OKLCH L 94.6% C 0.170 H 112.1°. Best body text is #000000 at 18.31:1 contrast (WCAG AA passes).
Color values
| HEX | #F0F862 |
|---|---|
| RGB | rgb(240, 248, 98) |
| HSL | hsl(63, 91%, 68%) |
| HSV | hsv(63, 60%, 97%) |
| CMYK | cmyk(3.2%, 0%, 60.5%, 2.7%) |
| CIE-LAB | lab(94.54, -21.31, 68.98) |
| CIE-LCH | lch(94.54, 72.20, 107.16°) |
| OKLab | oklab(94.56% -0.064 0.1575) |
| OKLCH | oklch(94.56% 0.17 112.1) |
| XYZ | xyz(71.7091, 86.5435, 24.4800) |
| Luminance | 0.8654 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Canary
#FDFF63
ΔE00 2.22
Pastel Yellow
#FFFE71
ΔE00 2.56
Butter Yellow
#FFFD74
ΔE00 2.76
Custard
#FFFD78
ΔE00 2.95
Light Yellow
#FFFE7A
ΔE00 2.97
Lemon (survey)
#FDFF52
ΔE00 3.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0F862 #6A62F8
analogous
#F8B562 #F0F862 #A5F862
triadic
#F0F862 #62F0F8 #F862F0
tetradic
#F0F862 #62F8B5 #6A62F8 #F862A5
square
#F0F862 #62F8B5 #6A62F8 #F862A5
split-complementary
#F0F862 #62A5F8 #B562F8
monochromatic
#CBD60A #EAF527 #F0F862 #F6FB9D #FBFDD7
Accessibility & contrast
On white
1.15
#F0F862 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.31
#F0F862 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0F862
18.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0F862 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0F862 | 1.00 | 1.15 | 18.31 | 18.31 |
| #FFFFFF | 1.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFED50
Deuteranopia (green-blind)
#FFF16B
Tritanopia (blue-blind)
#FFEAD8
Achromatopsia (no color)
#EFEFEF
Design tokens & code
CSS
--color: #f0f862; /* rgb */ color: rgb(240, 248, 98); /* oklch */ color: oklch(94.6% 0.170 112.1);
Tailwind
colors: {
custom: {
50: '#f8fa95',
500: '#f0f862',
950: '#000000',
},
}SCSS
$custom: #f0f862; $custom-light: #f8fa95; $custom-dark: #000000;
JSON
{
"hex": "#f0f862",
"rgb": {
"r": 240,
"g": 248,
"b": 98
},
"hsl": {
"h": 63.2,
"s": 91.463,
"l": 67.843
},
"oklch": {
"l": 0.94562,
"c": 0.17003,
"h": 112.1
},
"luminance": 0.86542
}Semantic roles & 50–950 ramp
primary
#F0F862
secondary
#362ED0
accent
#00E60C
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F