#F2D151#F2D151
#F2D151 is a very light, vivid yellow. Relative luminance 0.651; OKLCH L 86.6% C 0.148 H 94.5°. Best body text is #000000 at 14.01:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D151 |
|---|---|
| RGB | rgb(242, 209, 81) |
| HSL | hsl(48, 86%, 63%) |
| HSV | hsv(48, 67%, 95%) |
| CMYK | cmyk(0%, 13.6%, 66.5%, 5.1%) |
| CIE-LAB | lab(84.52, -2.22, 65.33) |
| CIE-LCH | lch(84.52, 65.37, 91.95°) |
| OKLab | oklab(86.59% -0.0117 0.1473) |
| OKLCH | oklch(86.59% 0.148 94.5) |
| XYZ | xyz(60.9066, 65.0755, 17.1357) |
| Luminance | 0.6507 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 0.98
Light Mustard
#F7D560
ΔE00 1.66
Light Gold
#FDDC5C
ΔE00 2.51
Pale Gold
#FDDE6C
ΔE00 3.39
Sand Yellow
#FCE166
ΔE00 3.82
Yellow Tan
#FFE36E
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D151 #5172F2
analogous
#F28051 #F2D151 #C2F251
triadic
#F2D151 #51F2D1 #D151F2
tetradic
#F2D151 #51F280 #5172F2 #F251C2
square
#F2D151 #51F280 #5172F2 #F251C2
split-complementary
#F2D151 #51C2F2 #8051F2
monochromatic
#BB970E #EEC218 #F2D151 #F6E08A #FBEFC3
Accessibility & contrast
On white
1.50
#F2D151 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.01
#F2D151 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D151
14.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D151 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D151 | 1.00 | 1.50 | 14.01 | 14.01 |
| #FFFFFF | 1.50 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.01 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.01 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E6CD41
Deuteranopia (green-blind)
#EED758
Tritanopia (blue-blind)
#FFC1B6
Achromatopsia (no color)
#D3D3D3
Design tokens & code
CSS
--color: #f2d151; /* rgb */ color: rgb(242, 209, 81); /* oklch */ color: oklch(86.6% 0.148 94.5);
Tailwind
colors: {
custom: {
50: '#fade88',
500: '#f2d151',
950: '#000000',
},
}SCSS
$custom: #f2d151; $custom-light: #fade88; $custom-dark: #000000;
JSON
{
"hex": "#f2d151",
"rgb": {
"r": 242,
"g": 209,
"b": 81
},
"hsl": {
"h": 47.702,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.86589,
"c": 0.14777,
"h": 94.5
},
"luminance": 0.65072
}Semantic roles & 50–950 ramp
primary
#F2D151
secondary
#2E4AB9
accent
#31E303
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F