#F2D04F#F2D04F
#F2D04F is a very light, vivid yellow. Relative luminance 0.646; OKLCH L 86.4% C 0.149 H 94.2°. Best body text is #000000 at 13.91:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D04F |
|---|---|
| RGB | rgb(242, 208, 79) |
| HSL | hsl(47, 86%, 63%) |
| HSV | hsv(47, 67%, 95%) |
| CMYK | cmyk(0%, 14%, 67.4%, 5.1%) |
| CIE-LAB | lab(84.25, -1.82, 65.87) |
| CIE-LCH | lch(84.25, 65.90, 91.58°) |
| OKLab | oklab(86.37% -0.0108 0.1481) |
| OKLCH | oklch(86.37% 0.149 94.2) |
| XYZ | xyz(60.5881, 64.5568, 16.6650) |
| Luminance | 0.6455 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 0.82
Light Mustard
#F7D560
ΔE00 1.82
Light Gold
#FDDC5C
ΔE00 2.73
Pale Gold
#FDDE6C
ΔE00 3.65
Sand Yellow
#FCE166
ΔE00 4.12
Yellow Tan
#FFE36E
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D04F #4F71F2
analogous
#F27F4F #F2D04F #C2F24F
triadic
#F2D04F #4FF2D0 #D04FF2
tetradic
#F2D04F #4FF27F #4F71F2 #F24FC2
square
#F2D04F #4FF27F #4F71F2 #F24FC2
split-complementary
#F2D04F #4FC2F2 #7F4FF2
monochromatic
#B9950E #EEC116 #F2D04F #F6DF88 #FAEEC1
Accessibility & contrast
On white
1.51
#F2D04F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.91
#F2D04F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D04F
13.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D04F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D04F | 1.00 | 1.51 | 13.91 | 13.91 |
| #FFFFFF | 1.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E5CC3E
Deuteranopia (green-blind)
#EED756
Tritanopia (blue-blind)
#FFC0B5
Achromatopsia (no color)
#D2D2D2
Design tokens & code
CSS
--color: #f2d04f; /* rgb */ color: rgb(242, 208, 79); /* oklch */ color: oklch(86.4% 0.149 94.2);
Tailwind
colors: {
custom: {
50: '#fade87',
500: '#f2d04f',
950: '#000000',
},
}SCSS
$custom: #f2d04f; $custom-light: #fade87; $custom-dark: #000000;
JSON
{
"hex": "#f2d04f",
"rgb": {
"r": 242,
"g": 208,
"b": 79
},
"hsl": {
"h": 47.485,
"s": 86.243,
"l": 62.941
},
"oklch": {
"l": 0.86372,
"c": 0.14851,
"h": 94.2
},
"luminance": 0.64554
}Semantic roles & 50–950 ramp
primary
#F2D04F
secondary
#2D4AB8
accent
#31E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F