#F2D351#F2D351
#F2D351 is a very light, vivid yellow. Relative luminance 0.661; OKLCH L 87.0% C 0.149 H 95.6°. Best body text is #000000 at 14.21:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D351 |
|---|---|
| RGB | rgb(242, 211, 81) |
| HSL | hsl(48, 86%, 63%) |
| HSV | hsv(48, 67%, 95%) |
| CMYK | cmyk(0%, 12.8%, 66.5%, 5.1%) |
| CIE-LAB | lab(85.03, -3.24, 65.86) |
| CIE-LCH | lch(85.03, 65.94, 92.81°) |
| OKLab | oklab(86.99% -0.0146 0.1484) |
| OKLCH | oklch(86.99% 0.149 95.6) |
| XYZ | xyz(61.4004, 66.0630, 17.3003) |
| Luminance | 0.6606 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 1.64
Light Mustard
#F7D560
ΔE00 1.87
Light Gold
#FDDC5C
ΔE00 2.20
Pale Gold
#FDDE6C
ΔE00 3.18
Sand Yellow
#FCE166
ΔE00 3.31
Dull Yellow
#EEDC5B
ΔE00 3.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D351 #5170F2
analogous
#F28251 #F2D351 #C0F251
triadic
#F2D351 #51F2D3 #D351F2
tetradic
#F2D351 #51F282 #5170F2 #F251C0
square
#F2D351 #51F282 #5170F2 #F251C0
split-complementary
#F2D351 #51C0F2 #8251F2
monochromatic
#BB990E #EEC518 #F2D351 #F6E18A #FBF0C3
Accessibility & contrast
On white
1.48
#F2D351 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.21
#F2D351 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D351
14.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D351 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D351 | 1.00 | 1.48 | 14.21 | 14.21 |
| #FFFFFF | 1.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E8CF40
Deuteranopia (green-blind)
#F0D958
Tritanopia (blue-blind)
#FFC3B8
Achromatopsia (no color)
#D4D4D4
Design tokens & code
CSS
--color: #f2d351; /* rgb */ color: rgb(242, 211, 81); /* oklch */ color: oklch(87.0% 0.149 95.6);
Tailwind
colors: {
custom: {
50: '#fae088',
500: '#f2d351',
950: '#000000',
},
}SCSS
$custom: #f2d351; $custom-light: #fae088; $custom-dark: #000000;
JSON
{
"hex": "#f2d351",
"rgb": {
"r": 242,
"g": 211,
"b": 81
},
"hsl": {
"h": 48.447,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.86989,
"c": 0.14914,
"h": 95.6
},
"luminance": 0.6606
}Semantic roles & 50–950 ramp
primary
#F2D351
secondary
#2E49B9
accent
#2EE303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F