#F2F166#F2F166
#F2F166 is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.3% C 0.159 H 108.7°. Best body text is #000000 at 17.55:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F166 |
|---|---|
| RGB | rgb(242, 241, 102) |
| HSL | hsl(60, 84%, 67%) |
| HSV | hsv(60, 58%, 95%) |
| CMYK | cmyk(0%, 0.4%, 57.9%, 5.1%) |
| CIE-LAB | lab(92.90, -16.87, 65.58) |
| CIE-LCH | lch(92.90, 67.71, 104.42°) |
| OKLab | oklab(93.3% -0.0512 0.1508) |
| OKLCH | oklch(93.3% 0.159 108.7) |
| XYZ | xyz(70.4736, 82.7491, 24.8276) |
| Luminance | 0.8275 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 2.25
Butter Yellow
#FFFD74
ΔE00 2.54
Yellowish
#FAEE66
ΔE00 2.61
Custard
#FFFD78
ΔE00 2.65
Pastel Yellow
#FFFE71
ΔE00 2.67
Light Yellow
#FFFE7A
ΔE00 2.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F166 #6667F2
analogous
#F2AB66 #F2F166 #ADF266
triadic
#F2F166 #66F2F1 #F166F2
tetradic
#F2F166 #66F2AB #6667F2 #F266AD
square
#F2F166 #66F2AB #6667F2 #F266AD
split-complementary
#F2F166 #66ADF2 #AB66F2
monochromatic
#CCCB11 #EDEC2E #F2F166 #F7F69E #FCFBD7
Accessibility & contrast
On white
1.20
#F2F166 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.55
#F2F166 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F166
17.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F166 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F166 | 1.00 | 1.20 | 17.55 | 17.55 |
| #FFFFFF | 1.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE856
Deuteranopia (green-blind)
#FFED6E
Tritanopia (blue-blind)
#FFE3D3
Achromatopsia (no color)
#EBEBEB
Design tokens & code
CSS
--color: #f2f166; /* rgb */ color: rgb(242, 241, 102); /* oklch */ color: oklch(93.3% 0.159 108.7);
Tailwind
colors: {
custom: {
50: '#f9f597',
500: '#f2f166',
950: '#000000',
},
}SCSS
$custom: #f2f166; $custom-light: #f9f597; $custom-dark: #000000;
JSON
{
"hex": "#f2f166",
"rgb": {
"r": 242,
"g": 241,
"b": 102
},
"hsl": {
"h": 59.571,
"s": 84.337,
"l": 67.451
},
"oklch": {
"l": 0.933,
"c": 0.15922,
"h": 108.7
},
"luminance": 0.82747
}Semantic roles & 50–950 ramp
primary
#F2F166
secondary
#3435C9
accent
#06E105
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F