#F0F162#F0F162
#F0F162 is a very light, vivid yellow. Relative luminance 0.823; OKLCH L 93.1% C 0.163 H 109.6°. Best body text is #000000 at 17.46:1 contrast (WCAG AA passes).
Color values
| HEX | #F0F162 |
|---|---|
| RGB | rgb(240, 241, 98) |
| HSL | hsl(60, 84%, 66%) |
| HSV | hsv(60, 59%, 95%) |
| CMYK | cmyk(0.4%, 0%, 59.3%, 5.5%) |
| CIE-LAB | lab(92.72, -17.94, 67.00) |
| CIE-LCH | lch(92.72, 69.36, 104.99°) |
| OKLab | oklab(93.1% -0.0545 0.1533) |
| OKLCH | oklch(93.1% 0.163 109.6) |
| XYZ | xyz(69.5971, 82.3195, 23.7760) |
| Luminance | 0.8232 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 2.75
Butter Yellow
#FFFD74
ΔE00 2.76
Pastel Yellow
#FFFE71
ΔE00 2.80
Custard
#FFFD78
ΔE00 2.91
Canary
#FDFF63
ΔE00 3.02
Yellowish
#FAEE66
ΔE00 3.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0F162 #6362F1
analogous
#F1AB62 #F0F162 #A9F162
triadic
#F0F162 #62F0F1 #F162F0
tetradic
#F0F162 #62F1AB #6362F1 #F162A9
square
#F0F162 #62F1AB #6362F1 #F162A9
split-complementary
#F0F162 #62A9F1 #AB62F1
monochromatic
#C6C712 #EBEC2A #F0F162 #F5F69A #FBFBD2
Accessibility & contrast
On white
1.20
#F0F162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.46
#F0F162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0F162
17.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0F162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0F162 | 1.00 | 1.20 | 17.46 | 17.46 |
| #FFFFFF | 1.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.46 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.46 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE851
Deuteranopia (green-blind)
#FFEC6B
Tritanopia (blue-blind)
#FFE3D3
Achromatopsia (no color)
#EAEAEA
Design tokens & code
CSS
--color: #f0f162; /* rgb */ color: rgb(240, 241, 98); /* oklch */ color: oklch(93.1% 0.163 109.6);
Tailwind
colors: {
custom: {
50: '#f8f594',
500: '#f0f162',
950: '#000000',
},
}SCSS
$custom: #f0f162; $custom-light: #f8f594; $custom-dark: #000000;
JSON
{
"hex": "#f0f162",
"rgb": {
"r": 240,
"g": 241,
"b": 98
},
"hsl": {
"h": 60.42,
"s": 83.626,
"l": 66.471
},
"oklch": {
"l": 0.93101,
"c": 0.16273,
"h": 109.6
},
"luminance": 0.82318
}Semantic roles & 50–950 ramp
primary
#F0F162
secondary
#3433C4
accent
#05E007
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F