#F2F562#F2F562
#F2F562 is a very light, vivid yellow. Relative luminance 0.851; OKLCH L 94.1% C 0.166 H 110.3°. Best body text is #000000 at 18.01:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F562 |
|---|---|
| RGB | rgb(242, 245, 98) |
| HSL | hsl(61, 88%, 67%) |
| HSV | hsv(61, 60%, 96%) |
| CMYK | cmyk(1.2%, 0%, 60%, 3.9%) |
| CIE-LAB | lab(93.91, -19.07, 68.34) |
| CIE-LCH | lch(93.91, 70.95, 105.59°) |
| OKLab | oklab(94.09% -0.0578 0.1561) |
| OKLCH | oklch(94.09% 0.166 110.3) |
| XYZ | xyz(71.4770, 85.0657, 24.2070) |
| Luminance | 0.8506 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Canary
#FDFF63
ΔE00 2.23
Pastel Yellow
#FFFE71
ΔE00 2.25
Butter Yellow
#FFFD74
ΔE00 2.34
Custard
#FFFD78
ΔE00 2.55
Light Yellow
#FFFE7A
ΔE00 2.69
Off Yellow
#F1F33F
ΔE00 2.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F562 #6562F5
analogous
#F5AE62 #F2F562 #A9F562
triadic
#F2F562 #62F2F5 #F562F2
tetradic
#F2F562 #62F5AE #6562F5 #F562A9
square
#F2F562 #62F5AE #6562F5 #F562A9
split-complementary
#F2F562 #62A9F5 #AE62F5
monochromatic
#CBCF0D #EDF128 #F2F562 #F7F99C #FCFCD5
Accessibility & contrast
On white
1.17
#F2F562 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.01
#F2F562 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F562
18.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F562 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F562 | 1.00 | 1.17 | 18.01 | 18.01 |
| #FFFFFF | 1.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEB50
Deuteranopia (green-blind)
#FFF06B
Tritanopia (blue-blind)
#FFE7D6
Achromatopsia (no color)
#EDEDED
Design tokens & code
CSS
--color: #f2f562; /* rgb */ color: rgb(242, 245, 98); /* oklch */ color: oklch(94.1% 0.166 110.3);
Tailwind
colors: {
custom: {
50: '#f9f894',
500: '#f2f562',
950: '#000000',
},
}SCSS
$custom: #f2f562; $custom-light: #f9f894; $custom-dark: #000000;
JSON
{
"hex": "#f2f562",
"rgb": {
"r": 242,
"g": 245,
"b": 98
},
"hsl": {
"h": 61.224,
"s": 88.024,
"l": 67.255
},
"oklch": {
"l": 0.94093,
"c": 0.16649,
"h": 110.3
},
"luminance": 0.85064
}Semantic roles & 50–950 ramp
primary
#F2F562
secondary
#3330CB
accent
#01E506
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F