#F2F162#F2F162
#F2F162 is a very light, vivid yellow. Relative luminance 0.827; OKLCH L 93.3% C 0.162 H 108.8°. Best body text is #000000 at 17.53:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F162 |
|---|---|
| RGB | rgb(242, 241, 98) |
| HSL | hsl(60, 85%, 67%) |
| HSV | hsv(60, 60%, 95%) |
| CMYK | cmyk(0%, 0.4%, 59.5%, 5.1%) |
| CIE-LAB | lab(92.87, -17.13, 67.22) |
| CIE-LCH | lch(92.87, 69.37, 104.30°) |
| OKLab | oklab(93.26% -0.0523 0.1538) |
| OKLCH | oklch(93.26% 0.162 108.8) |
| XYZ | xyz(70.2800, 82.6716, 23.8080) |
| Luminance | 0.8267 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 2.53
Yellowish
#FAEE66
ΔE00 2.62
Butter Yellow
#FFFD74
ΔE00 2.64
Pastel Yellow
#FFFE71
ΔE00 2.70
Custard
#FFFD78
ΔE00 2.80
Canary
#FDFF63
ΔE00 2.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F162 #6263F2
analogous
#F2A962 #F2F162 #ABF262
triadic
#F2F162 #62F2F1 #F162F2
tetradic
#F2F162 #62F2A9 #6263F2 #F262AB
square
#F2F162 #62F2A9 #6263F2 #F262AB
split-complementary
#F2F162 #62ABF2 #A962F2
monochromatic
#C9C811 #EDEC29 #F2F162 #F7F69B #FBFBD3
Accessibility & contrast
On white
1.20
#F2F162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.53
#F2F162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F162
17.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F162 | 1.00 | 1.20 | 17.53 | 17.53 |
| #FFFFFF | 1.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE851
Deuteranopia (green-blind)
#FFED6B
Tritanopia (blue-blind)
#FFE3D3
Achromatopsia (no color)
#EAEAEA
Design tokens & code
CSS
--color: #f2f162; /* rgb */ color: rgb(242, 241, 98); /* oklch */ color: oklch(93.3% 0.162 108.8);
Tailwind
colors: {
custom: {
50: '#f9f594',
500: '#f2f162',
950: '#000000',
},
}SCSS
$custom: #f2f162; $custom-light: #f9f594; $custom-dark: #000000;
JSON
{
"hex": "#f2f162",
"rgb": {
"r": 242,
"g": 241,
"b": 98
},
"hsl": {
"h": 59.583,
"s": 84.706,
"l": 66.667
},
"oklch": {
"l": 0.93262,
"c": 0.16241,
"h": 108.8
},
"luminance": 0.8267
}Semantic roles & 50–950 ramp
primary
#F2F162
secondary
#3334C6
accent
#06E104
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F