#F2D562#F2D562
#F2D562 is a very light, vivid yellow. Relative luminance 0.673; OKLCH L 87.6% C 0.137 H 95.2°. Best body text is #000000 at 14.47:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D562 |
|---|---|
| RGB | rgb(242, 213, 98) |
| HSL | hsl(48, 85%, 67%) |
| HSV | hsv(48, 60%, 95%) |
| CMYK | cmyk(0%, 12%, 59.5%, 5.1%) |
| CIE-LAB | lab(85.68, -3.21, 59.29) |
| CIE-LCH | lch(85.68, 59.38, 93.10°) |
| OKLab | oklab(87.55% -0.0126 0.1369) |
| OKLCH | oklch(87.55% 0.137 95.2) |
| XYZ | xyz(62.6195, 67.3506, 21.2545) |
| Luminance | 0.6735 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Mustard
#F7D560
ΔE00 1.35
Pale Gold
#FDDE6C
ΔE00 2.19
Maize
#F4D054
ΔE00 2.23
Light Gold
#FDDC5C
ΔE00 2.38
Sand Yellow
#FCE166
ΔE00 2.82
Sandy
#F1DA7A
ΔE00 3.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D562 #627FF2
analogous
#F28D62 #F2D562 #C7F262
triadic
#F2D562 #62F2D5 #D562F2
tetradic
#F2D562 #62F28D #627FF2 #F262C7
square
#F2D562 #62F28D #627FF2 #F262C7
split-complementary
#F2D562 #62C7F2 #8D62F2
monochromatic
#C9A411 #EDC629 #F2D562 #F7E49B #FBF3D3
Accessibility & contrast
On white
1.45
#F2D562 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.47
#F2D562 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D562
14.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D562 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D562 | 1.00 | 1.45 | 14.47 | 14.47 |
| #FFFFFF | 1.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E8D156
Deuteranopia (green-blind)
#F0DA67
Tritanopia (blue-blind)
#FFC6BC
Achromatopsia (no color)
#D6D6D6
Design tokens & code
CSS
--color: #f2d562; /* rgb */ color: rgb(242, 213, 98); /* oklch */ color: oklch(87.6% 0.137 95.2);
Tailwind
colors: {
custom: {
50: '#f9e192',
500: '#f2d562',
950: '#000000',
},
}SCSS
$custom: #f2d562; $custom-light: #f9e192; $custom-dark: #000000;
JSON
{
"hex": "#f2d562",
"rgb": {
"r": 242,
"g": 213,
"b": 98
},
"hsl": {
"h": 47.917,
"s": 84.706,
"l": 66.667
},
"oklch": {
"l": 0.87551,
"c": 0.13746,
"h": 95.2
},
"luminance": 0.67348
}Semantic roles & 50–950 ramp
primary
#F2D562
secondary
#3350C6
accent
#31E104
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F