#F2D257#F2D257
#F2D257 is a very light, vivid yellow. Relative luminance 0.657; OKLCH L 86.8% C 0.144 H 94.6°. Best body text is #000000 at 14.13:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D257 |
|---|---|
| RGB | rgb(242, 210, 87) |
| HSL | hsl(48, 86%, 65%) |
| HSV | hsv(48, 64%, 95%) |
| CMYK | cmyk(0%, 13.2%, 64%, 5.1%) |
| CIE-LAB | lab(84.82, -2.38, 63.15) |
| CIE-LCH | lch(84.82, 63.19, 92.16°) |
| OKLab | oklab(86.84% -0.0115 0.1436) |
| OKLCH | oklch(86.84% 0.144 94.6) |
| XYZ | xyz(61.3877, 65.6617, 18.4555) |
| Luminance | 0.6566 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 1.11
Light Mustard
#F7D560
ΔE00 1.24
Light Gold
#FDDC5C
ΔE00 2.36
Pale Gold
#FDDE6C
ΔE00 2.95
Sand Yellow
#FCE166
ΔE00 3.49
Yellow Tan
#FFE36E
ΔE00 3.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D257 #5777F2
analogous
#F28557 #F2D257 #C4F257
triadic
#F2D257 #57F2D2 #D257F2
tetradic
#F2D257 #57F285 #5777F2 #F257C4
square
#F2D257 #57F285 #5777F2 #F257C4
split-complementary
#F2D257 #57C4F2 #8557F2
monochromatic
#C09B0F #EEC31E #F2D257 #F6E190 #FBF0C9
Accessibility & contrast
On white
1.49
#F2D257 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.13
#F2D257 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D257
14.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D257 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D257 | 1.00 | 1.49 | 14.13 | 14.13 |
| #FFFFFF | 1.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E6CE49
Deuteranopia (green-blind)
#EFD85D
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D4D4D4
Design tokens & code
CSS
--color: #f2d257; /* rgb */ color: rgb(242, 210, 87); /* oklch */ color: oklch(86.8% 0.144 94.6);
Tailwind
colors: {
custom: {
50: '#fadf8b',
500: '#f2d257',
950: '#000000',
},
}SCSS
$custom: #f2d257; $custom-light: #fadf8b; $custom-dark: #000000;
JSON
{
"hex": "#f2d257",
"rgb": {
"r": 242,
"g": 210,
"b": 87
},
"hsl": {
"h": 47.613,
"s": 85.635,
"l": 64.51
},
"oklch": {
"l": 0.86842,
"c": 0.14406,
"h": 94.6
},
"luminance": 0.65659
}Semantic roles & 50–950 ramp
primary
#F2D257
secondary
#304DBE
accent
#31E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F