#F2DD51#F2DD51
#F2DD51 is a very light, vivid yellow. Relative luminance 0.712; OKLCH L 89.0% C 0.157 H 100.7°. Best body text is #000000 at 15.24:1 contrast (WCAG AA passes).
Color values
| HEX | #F2DD51 |
|---|---|
| RGB | rgb(242, 221, 81) |
| HSL | hsl(52, 86%, 63%) |
| HSV | hsv(52, 67%, 95%) |
| CMYK | cmyk(0%, 8.7%, 66.5%, 5.1%) |
| CIE-LAB | lab(87.58, -8.29, 68.50) |
| CIE-LCH | lch(87.58, 69.00, 96.90°) |
| OKLab | oklab(89.01% -0.029 0.154) |
| OKLCH | oklch(89.01% 0.157 100.7) |
| XYZ | xyz(63.9624, 71.1870, 18.1543) |
| Luminance | 0.7118 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Dull Yellow
#EEDC5B
ΔE00 1.39
Sand Yellow
#FCE166
ΔE00 2.69
Light Gold
#FDDC5C
ΔE00 3.42
Banana
#FFE135
ΔE00 3.52
Yellow Tan
#FFE36E
ΔE00 3.60
Pale Gold
#FDDE6C
ΔE00 4.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2DD51 #5166F2
analogous
#F28C51 #F2DD51 #B6F251
triadic
#F2DD51 #51F2DD #DD51F2
tetradic
#F2DD51 #51F28C #5166F2 #F251B6
square
#F2DD51 #51F28C #5166F2 #F251B6
split-complementary
#F2DD51 #51B6F2 #8C51F2
monochromatic
#BBA40E #EED218 #F2DD51 #F6E88A #FBF3C3
Accessibility & contrast
On white
1.38
#F2DD51 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.24
#F2DD51 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2DD51
15.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2DD51 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2DD51 | 1.00 | 1.38 | 15.24 | 15.24 |
| #FFFFFF | 1.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F1D73E
Deuteranopia (green-blind)
#F7DF59
Tritanopia (blue-blind)
#FFCEC0
Achromatopsia (no color)
#DBDBDB
Design tokens & code
CSS
--color: #f2dd51; /* rgb */ color: rgb(242, 221, 81); /* oklch */ color: oklch(89.0% 0.157 100.7);
Tailwind
colors: {
custom: {
50: '#fae789',
500: '#f2dd51',
950: '#000000',
},
}SCSS
$custom: #f2dd51; $custom-light: #fae789; $custom-dark: #000000;
JSON
{
"hex": "#f2dd51",
"rgb": {
"r": 242,
"g": 221,
"b": 81
},
"hsl": {
"h": 52.174,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.89007,
"c": 0.15671,
"h": 100.7
},
"luminance": 0.71184
}Semantic roles & 50–950 ramp
primary
#F2DD51
secondary
#2E40B9
accent
#20E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F