#F2D462#F2D462
#F2D462 is a very light, vivid yellow. Relative luminance 0.668; OKLCH L 87.4% C 0.137 H 94.7°. Best body text is #000000 at 14.37:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D462 |
|---|---|
| RGB | rgb(242, 212, 98) |
| HSL | hsl(48, 85%, 67%) |
| HSV | hsv(48, 60%, 95%) |
| CMYK | cmyk(0%, 12.4%, 59.5%, 5.1%) |
| CIE-LAB | lab(85.43, -2.70, 59.01) |
| CIE-LCH | lch(85.43, 59.07, 92.62°) |
| OKLab | oklab(87.35% -0.0111 0.1363) |
| OKLCH | oklch(87.35% 0.137 94.7) |
| XYZ | xyz(62.3687, 66.8491, 21.1709) |
| Luminance | 0.6685 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Mustard
#F7D560
ΔE00 1.14
Maize
#F4D054
ΔE00 2.00
Pale Gold
#FDDE6C
ΔE00 2.31
Light Gold
#FDDC5C
ΔE00 2.50
Sand Yellow
#FCE166
ΔE00 3.11
Sandy
#F1DA7A
ΔE00 3.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D462 #6280F2
analogous
#F28C62 #F2D462 #C8F262
triadic
#F2D462 #62F2D4 #D462F2
tetradic
#F2D462 #62F28C #6280F2 #F262C8
square
#F2D462 #62F28C #6280F2 #F262C8
split-complementary
#F2D462 #62C8F2 #8C62F2
monochromatic
#C9A311 #EDC529 #F2D462 #F7E39B #FBF3D3
Accessibility & contrast
On white
1.46
#F2D462 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.37
#F2D462 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D462
14.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D462 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D462 | 1.00 | 1.46 | 14.37 | 14.37 |
| #FFFFFF | 1.46 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.37 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.37 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E8D056
Deuteranopia (green-blind)
#EFD967
Tritanopia (blue-blind)
#FFC5BB
Achromatopsia (no color)
#D5D5D5
Design tokens & code
CSS
--color: #f2d462; /* rgb */ color: rgb(242, 212, 98); /* oklch */ color: oklch(87.4% 0.137 94.7);
Tailwind
colors: {
custom: {
50: '#f9e092',
500: '#f2d462',
950: '#000000',
},
}SCSS
$custom: #f2d462; $custom-light: #f9e092; $custom-dark: #000000;
JSON
{
"hex": "#f2d462",
"rgb": {
"r": 242,
"g": 212,
"b": 98
},
"hsl": {
"h": 47.5,
"s": 84.706,
"l": 66.667
},
"oklch": {
"l": 0.87351,
"c": 0.13672,
"h": 94.7
},
"luminance": 0.66846
}Semantic roles & 50–950 ramp
primary
#F2D462
secondary
#3351C6
accent
#32E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F