#F2F862#F2F862
#F2F862 is a very light, vivid yellow. Relative luminance 0.869; OKLCH L 94.7% C 0.170 H 111.4°. Best body text is #000000 at 18.38:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F862 |
|---|---|
| RGB | rgb(242, 248, 98) |
| HSL | hsl(62, 91%, 68%) |
| HSV | hsv(62, 60%, 97%) |
| CMYK | cmyk(2.4%, 0%, 60.5%, 2.7%) |
| CIE-LAB | lab(94.69, -20.51, 69.19) |
| CIE-LCH | lch(94.69, 72.16, 106.51°) |
| OKLab | oklab(94.72% -0.0619 0.1579) |
| OKLCH | oklch(94.72% 0.17 111.4) |
| XYZ | xyz(72.3920, 86.8956, 24.5120) |
| Luminance | 0.8689 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Canary
#FDFF63
ΔE00 1.91
Pastel Yellow
#FFFE71
ΔE00 2.23
Butter Yellow
#FFFD74
ΔE00 2.43
Custard
#FFFD78
ΔE00 2.67
Light Yellow
#FFFE7A
ΔE00 2.72
Lemon (survey)
#FDFF52
ΔE00 2.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F862 #6862F8
analogous
#F8B362 #F2F862 #A7F862
triadic
#F2F862 #62F2F8 #F862F2
tetradic
#F2F862 #62F8B3 #6862F8 #F862A7
square
#F2F862 #62F8B3 #6862F8 #F862A7
split-complementary
#F2F862 #62A7F8 #B362F8
monochromatic
#CED60A #EDF527 #F2F862 #F7FB9D #FCFDD7
Accessibility & contrast
On white
1.14
#F2F862 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.38
#F2F862 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F862
18.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F862 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F862 | 1.00 | 1.14 | 18.38 | 18.38 |
| #FFFFFF | 1.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEE50
Deuteranopia (green-blind)
#FFF26B
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#F0F0F0
Design tokens & code
CSS
--color: #f2f862; /* rgb */ color: rgb(242, 248, 98); /* oklch */ color: oklch(94.7% 0.170 111.4);
Tailwind
colors: {
custom: {
50: '#f9fa95',
500: '#f2f862',
950: '#000000',
},
}SCSS
$custom: #f2f862; $custom-light: #f9fa95; $custom-dark: #000000;
JSON
{
"hex": "#f2f862",
"rgb": {
"r": 242,
"g": 248,
"b": 98
},
"hsl": {
"h": 62.4,
"s": 91.463,
"l": 67.843
},
"oklch": {
"l": 0.94718,
"c": 0.16961,
"h": 111.4
},
"luminance": 0.86894
}Semantic roles & 50–950 ramp
primary
#F2F862
secondary
#342ED0
accent
#00E609
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170E
muted
#86857F