#F2D158#F2D158
#F2D158 is a very light, vivid yellow. Relative luminance 0.652; OKLCH L 86.7% C 0.143 H 93.9°. Best body text is #000000 at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D158 |
|---|---|
| RGB | rgb(242, 209, 88) |
| HSL | hsl(47, 86%, 65%) |
| HSV | hsv(47, 64%, 95%) |
| CMYK | cmyk(0%, 13.6%, 63.6%, 5.1%) |
| CIE-LAB | lab(84.58, -1.81, 62.46) |
| CIE-LCH | lch(84.58, 62.49, 91.66°) |
| OKLab | oklab(86.65% -0.0097 0.1423) |
| OKLCH | oklch(86.65% 0.143 93.9) |
| XYZ | xyz(61.1827, 65.1859, 18.5901) |
| Luminance | 0.6518 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 0.83
Light Mustard
#F7D560
ΔE00 1.14
Light Gold
#FDDC5C
ΔE00 2.59
Pale Gold
#FDDE6C
ΔE00 3.08
Sand Yellow
#FCE166
ΔE00 3.79
Yellow Tan
#FFE36E
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D158 #5879F2
analogous
#F28458 #F2D158 #C6F258
triadic
#F2D158 #58F2D1 #D158F2
tetradic
#F2D158 #58F284 #5879F2 #F258C6
square
#F2D158 #58F284 #5879F2 #F258C6
split-complementary
#F2D158 #58C6F2 #8458F2
monochromatic
#C19B0F #EEC11F #F2D158 #F6E191 #FBF0CA
Accessibility & contrast
On white
1.50
#F2D158 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.04
#F2D158 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D158
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D158 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D158 | 1.00 | 1.50 | 14.04 | 14.04 |
| #FFFFFF | 1.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.04 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.04 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E5CD4A
Deuteranopia (green-blind)
#EED75E
Tritanopia (blue-blind)
#FFC2B7
Achromatopsia (no color)
#D3D3D3
Design tokens & code
CSS
--color: #f2d158; /* rgb */ color: rgb(242, 209, 88); /* oklch */ color: oklch(86.7% 0.143 93.9);
Tailwind
colors: {
custom: {
50: '#fade8c',
500: '#f2d158',
950: '#000000',
},
}SCSS
$custom: #f2d158; $custom-light: #fade8c; $custom-dark: #000000;
JSON
{
"hex": "#f2d158",
"rgb": {
"r": 242,
"g": 209,
"b": 88
},
"hsl": {
"h": 47.143,
"s": 85.556,
"l": 64.706
},
"oklch": {
"l": 0.86652,
"c": 0.14261,
"h": 93.9
},
"luminance": 0.65183
}Semantic roles & 50–950 ramp
primary
#F2D158
secondary
#304EBE
accent
#33E203
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F