#F2D457#F2D457
#F2D457 is a very light, vivid yellow. Relative luminance 0.667; OKLCH L 87.2% C 0.145 H 95.7°. Best body text is #000000 at 14.33:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D457 |
|---|---|
| RGB | rgb(242, 212, 87) |
| HSL | hsl(48, 86%, 65%) |
| HSV | hsv(48, 64%, 95%) |
| CMYK | cmyk(0%, 12.4%, 64%, 5.1%) |
| CIE-LAB | lab(85.33, -3.40, 63.69) |
| CIE-LCH | lch(85.33, 63.78, 93.06°) |
| OKLab | oklab(87.24% -0.0144 0.1448) |
| OKLCH | oklch(87.24% 0.145 95.7) |
| XYZ | xyz(61.8846, 66.6554, 18.6211) |
| Luminance | 0.6665 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Mustard
#F7D560
ΔE00 1.57
Maize
#F4D054
ΔE00 1.78
Light Gold
#FDDC5C
ΔE00 2.07
Pale Gold
#FDDE6C
ΔE00 2.73
Sand Yellow
#FCE166
ΔE00 2.96
Dull Yellow
#EEDC5B
ΔE00 3.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D457 #5775F2
analogous
#F28757 #F2D457 #C3F257
triadic
#F2D457 #57F2D4 #D457F2
tetradic
#F2D457 #57F287 #5775F2 #F257C3
square
#F2D457 #57F287 #5775F2 #F257C3
split-complementary
#F2D457 #57C3F2 #8757F2
monochromatic
#C09E0F #EEC51E #F2D457 #F6E390 #FBF1C9
Accessibility & contrast
On white
1.47
#F2D457 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.33
#F2D457 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D457
14.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D457 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D457 | 1.00 | 1.47 | 14.33 | 14.33 |
| #FFFFFF | 1.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E8D048
Deuteranopia (green-blind)
#F0D95D
Tritanopia (blue-blind)
#FFC5BA
Achromatopsia (no color)
#D5D5D5
Design tokens & code
CSS
--color: #f2d457; /* rgb */ color: rgb(242, 212, 87); /* oklch */ color: oklch(87.2% 0.145 95.7);
Tailwind
colors: {
custom: {
50: '#fae08c',
500: '#f2d457',
950: '#000000',
},
}SCSS
$custom: #f2d457; $custom-light: #fae08c; $custom-dark: #000000;
JSON
{
"hex": "#f2d457",
"rgb": {
"r": 242,
"g": 212,
"b": 87
},
"hsl": {
"h": 48.387,
"s": 85.635,
"l": 64.51
},
"oklch": {
"l": 0.87242,
"c": 0.14547,
"h": 95.7
},
"luminance": 0.66652
}Semantic roles & 50–950 ramp
primary
#F2D457
secondary
#304BBE
accent
#2EE203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F