#F2D451#F2D451
#F2D451 is a very light, vivid yellow. Relative luminance 0.666; OKLCH L 87.2% C 0.150 H 96.2°. Best body text is #000000 at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D451 |
|---|---|
| RGB | rgb(242, 212, 81) |
| HSL | hsl(49, 86%, 63%) |
| HSV | hsv(49, 67%, 95%) |
| CMYK | cmyk(0%, 12.4%, 66.5%, 5.1%) |
| CIE-LAB | lab(85.28, -3.75, 66.13) |
| CIE-LCH | lch(85.28, 66.23, 93.24°) |
| OKLab | oklab(87.19% -0.0161 0.149) |
| OKLCH | oklch(87.19% 0.15 96.2) |
| XYZ | xyz(61.6496, 66.5614, 17.3834) |
| Luminance | 0.6656 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 1.99
Light Mustard
#F7D560
ΔE00 2.06
Light Gold
#FDDC5C
ΔE00 2.12
Sand Yellow
#FCE166
ΔE00 3.09
Pale Gold
#FDDE6C
ΔE00 3.12
Dull Yellow
#EEDC5B
ΔE00 3.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D451 #516FF2
analogous
#F28351 #F2D451 #BFF251
triadic
#F2D451 #51F2D4 #D451F2
tetradic
#F2D451 #51F283 #516FF2 #F251BF
square
#F2D451 #51F283 #516FF2 #F251BF
split-complementary
#F2D451 #51BFF2 #8351F2
monochromatic
#BB9A0E #EEC618 #F2D451 #F6E28A #FBF0C3
Accessibility & contrast
On white
1.47
#F2D451 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.31
#F2D451 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D451
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D451 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D451 | 1.00 | 1.47 | 14.31 | 14.31 |
| #FFFFFF | 1.47 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.31 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.31 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E9D040
Deuteranopia (green-blind)
#F0D958
Tritanopia (blue-blind)
#FFC5B9
Achromatopsia (no color)
#D5D5D5
Design tokens & code
CSS
--color: #f2d451; /* rgb */ color: rgb(242, 212, 81); /* oklch */ color: oklch(87.2% 0.150 96.2);
Tailwind
colors: {
custom: {
50: '#fae088',
500: '#f2d451',
950: '#000000',
},
}SCSS
$custom: #f2d451; $custom-light: #fae088; $custom-dark: #000000;
JSON
{
"hex": "#f2d451",
"rgb": {
"r": 242,
"g": 212,
"b": 81
},
"hsl": {
"h": 48.82,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.87189,
"c": 0.14984,
"h": 96.2
},
"luminance": 0.66558
}Semantic roles & 50–950 ramp
primary
#F2D451
secondary
#2E48B9
accent
#2DE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F