#F2DC51#F2DC51
#F2DC51 is a very light, vivid yellow. Relative luminance 0.707; OKLCH L 88.8% C 0.156 H 100.2°. Best body text is #000000 at 15.13:1 contrast (WCAG AA passes).
Color values
| HEX | #F2DC51 |
|---|---|
| RGB | rgb(242, 220, 81) |
| HSL | hsl(52, 86%, 63%) |
| HSV | hsv(52, 67%, 95%) |
| CMYK | cmyk(0%, 9.1%, 66.5%, 5.1%) |
| CIE-LAB | lab(87.32, -7.79, 68.24) |
| CIE-LCH | lch(87.32, 68.68, 96.51°) |
| OKLab | oklab(88.8% -0.0276 0.1534) |
| OKLCH | oklch(88.8% 0.156 100.2) |
| XYZ | xyz(63.6991, 70.6606, 18.0666) |
| Luminance | 0.7066 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 1.45
Sand Yellow
#FCE166
ΔE00 2.57
Light Gold
#FDDC5C
ΔE00 3.16
Banana
#FFE135
ΔE00 3.49
Yellow Tan
#FFE36E
ΔE00 3.50
Pale Gold
#FDDE6C
ΔE00 3.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2DC51 #5167F2
analogous
#F28B51 #F2DC51 #B7F251
triadic
#F2DC51 #51F2DC #DC51F2
tetradic
#F2DC51 #51F28B #5167F2 #F251B7
square
#F2DC51 #51F28B #5167F2 #F251B7
split-complementary
#F2DC51 #51B7F2 #8B51F2
monochromatic
#BBA30E #EED118 #F2DC51 #F6E78A #FBF3C3
Accessibility & contrast
On white
1.39
#F2DC51 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.13
#F2DC51 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2DC51
15.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2DC51 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2DC51 | 1.00 | 1.39 | 15.13 | 15.13 |
| #FFFFFF | 1.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F0D63E
Deuteranopia (green-blind)
#F6DE59
Tritanopia (blue-blind)
#FFCDBF
Achromatopsia (no color)
#DBDBDB
Design tokens & code
CSS
--color: #f2dc51; /* rgb */ color: rgb(242, 220, 81); /* oklch */ color: oklch(88.8% 0.156 100.2);
Tailwind
colors: {
custom: {
50: '#fae689',
500: '#f2dc51',
950: '#000000',
},
}SCSS
$custom: #f2dc51; $custom-light: #fae689; $custom-dark: #000000;
JSON
{
"hex": "#f2dc51",
"rgb": {
"r": 242,
"g": 220,
"b": 81
},
"hsl": {
"h": 51.801,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.88804,
"c": 0.1559,
"h": 100.2
},
"luminance": 0.70658
}Semantic roles & 50–950 ramp
primary
#F2DC51
secondary
#2E41B9
accent
#21E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F