#F2F057#F2F057
#F2F057 is a very light, vivid yellow. Relative luminance 0.819; OKLCH L 93.0% C 0.170 H 108.6°. Best body text is #000000 at 17.38:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F057 |
|---|---|
| RGB | rgb(242, 240, 87) |
| HSL | hsl(59, 86%, 65%) |
| HSV | hsv(59, 64%, 95%) |
| CMYK | cmyk(0%, 0.8%, 64%, 5.1%) |
| CIE-LAB | lab(92.53, -17.32, 71.27) |
| CIE-LCH | lch(92.53, 73.34, 103.66°) |
| OKLab | oklab(92.96% -0.054 0.1608) |
| OKLCH | oklch(92.96% 0.17 108.6) |
| XYZ | xyz(69.5007, 81.8876, 21.1598) |
| Luminance | 0.8189 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Off Yellow
#F1F33F
ΔE00 2.14
Yellowish
#FAEE66
ΔE00 2.68
Canary
#FDFF63
ΔE00 3.07
Pastel Yellow
#FFFE71
ΔE00 3.20
Butter Yellow
#FFFD74
ΔE00 3.23
Straw
#FCF679
ΔE00 3.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F057 #5759F2
analogous
#F2A357 #F2F057 #A6F257
triadic
#F2F057 #57F2F0 #F057F2
tetradic
#F2F057 #57F2A3 #5759F2 #F257A6
square
#F2F057 #57F2A3 #5759F2 #F257A6
split-complementary
#F2F057 #57A6F2 #A357F2
monochromatic
#C0BD0F #EEEB1E #F2F057 #F6F590 #FBFAC9
Accessibility & contrast
On white
1.21
#F2F057 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.38
#F2F057 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F057
17.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F057 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F057 | 1.00 | 1.21 | 17.38 | 17.38 |
| #FFFFFF | 1.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE742
Deuteranopia (green-blind)
#FFEC61
Tritanopia (blue-blind)
#FFE1D1
Achromatopsia (no color)
#EAEAEA
Design tokens & code
CSS
--color: #f2f057; /* rgb */ color: rgb(242, 240, 87); /* oklch */ color: oklch(93.0% 0.170 108.6);
Tailwind
colors: {
custom: {
50: '#faf48e',
500: '#f2f057',
950: '#000000',
},
}SCSS
$custom: #f2f057; $custom-light: #faf48e; $custom-dark: #000000;
JSON
{
"hex": "#f2f057",
"rgb": {
"r": 242,
"g": 240,
"b": 87
},
"hsl": {
"h": 59.226,
"s": 85.635,
"l": 64.51
},
"oklch": {
"l": 0.9296,
"c": 0.16958,
"h": 108.6
},
"luminance": 0.81886
}Semantic roles & 50–950 ramp
primary
#F2F057
secondary
#3031BE
accent
#06E203
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18170D
muted
#86857F