#F2DF51#F2DF51
#F2DF51 is a very light, vivid yellow. Relative luminance 0.722; OKLCH L 89.4% C 0.158 H 101.6°. Best body text is #000000 at 15.45:1 contrast (WCAG AA passes).
Color values
| HEX | #F2DF51 |
|---|---|
| RGB | rgb(242, 223, 81) |
| HSL | hsl(53, 86%, 63%) |
| HSV | hsv(53, 67%, 95%) |
| CMYK | cmyk(0%, 7.9%, 66.5%, 5.1%) |
| CIE-LAB | lab(88.09, -9.29, 69.03) |
| CIE-LCH | lch(88.09, 69.65, 97.66°) |
| OKLab | oklab(89.41% -0.0319 0.1551) |
| OKLCH | oklch(89.41% 0.158 101.6) |
| XYZ | xyz(64.4936, 72.2494, 18.3314) |
| Luminance | 0.7225 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 1.48
Sand Yellow
#FCE166
ΔE00 3.01
Yellowish
#FAEE66
ΔE00 3.60
Banana
#FFE135
ΔE00 3.65
Yellow Tan
#FFE36E
ΔE00 3.87
Light Gold
#FDDC5C
ΔE00 3.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2DF51 #5164F2
analogous
#F28E51 #F2DF51 #B4F251
triadic
#F2DF51 #51F2DF #DF51F2
tetradic
#F2DF51 #51F28E #5164F2 #F251B4
square
#F2DF51 #51F28E #5164F2 #F251B4
split-complementary
#F2DF51 #51B4F2 #8E51F2
monochromatic
#BBA60E #EED518 #F2DF51 #F6E98A #FBF4C3
Accessibility & contrast
On white
1.36
#F2DF51 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.45
#F2DF51 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2DF51
15.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2DF51 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2DF51 | 1.00 | 1.36 | 15.45 | 15.45 |
| #FFFFFF | 1.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F3D83E
Deuteranopia (green-blind)
#F8E059
Tritanopia (blue-blind)
#FFD0C2
Achromatopsia (no color)
#DDDDDD
Design tokens & code
CSS
--color: #f2df51; /* rgb */ color: rgb(242, 223, 81); /* oklch */ color: oklch(89.4% 0.158 101.6);
Tailwind
colors: {
custom: {
50: '#fae889',
500: '#f2df51',
950: '#000000',
},
}SCSS
$custom: #f2df51; $custom-light: #fae889; $custom-dark: #000000;
JSON
{
"hex": "#f2df51",
"rgb": {
"r": 242,
"g": 223,
"b": 81
},
"hsl": {
"h": 52.919,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.89414,
"c": 0.15835,
"h": 101.6
},
"luminance": 0.72247
}Semantic roles & 50–950 ramp
primary
#F2DF51
secondary
#2E3EB9
accent
#1DE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F