#F2F798#F2F798
#F2F798 is a very light, moderate yellow. Relative luminance 0.877; OKLCH L 95.2% C 0.118 H 111.0°. Best body text is #000000 at 18.53:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F798 |
|---|---|
| RGB | rgb(242, 247, 152) |
| HSL | hsl(63, 86%, 78%) |
| HSV | hsv(63, 38%, 97%) |
| CMYK | cmyk(2%, 0%, 38.5%, 3.1%) |
| CIE-LAB | lab(95.02, -15.38, 45.09) |
| CIE-LCH | lch(95.02, 47.64, 108.83°) |
| OKLab | oklab(95.17% -0.0423 0.11) |
| OKLCH | oklch(95.17% 0.118 111) |
| XYZ | xyz(75.5470, 87.6670, 42.6414) |
| Luminance | 0.8767 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Buff
#FEF69E
ΔE00 3.42
Light Khaki
#E6F2A2
ΔE00 3.46
Parchment
#FEFCAF
ΔE00 3.64
Manilla
#FFFA86
ΔE00 4.17
Yellowish Tan
#FCFC81
ΔE00 4.31
Creme
#FFFFB6
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F798 #9D98F7
analogous
#F7CC98 #F2F798 #C2F798
triadic
#F2F798 #98F2F7 #F798F2
tetradic
#F2F798 #98F7CC #9D98F7 #F798C2
square
#F2F798 #98F7CC #9D98F7 #F798C2
split-complementary
#F2F798 #98C2F7 #CC98F7
monochromatic
#E4EE26 #EBF35F #F2F798 #F9FBD1 #FBFDE3
Accessibility & contrast
On white
1.13
#F2F798 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.53
#F2F798 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F798
18.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F798 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F798 | 1.00 | 1.13 | 18.53 | 18.53 |
| #FFFFFF | 1.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEF91
Deuteranopia (green-blind)
#FFF29C
Tritanopia (blue-blind)
#FEECE0
Achromatopsia (no color)
#F1F1F1
Design tokens & code
CSS
--color: #f2f798; /* rgb */ color: rgb(242, 247, 152); /* oklch */ color: oklch(95.2% 0.118 111.0);
Tailwind
colors: {
custom: {
50: '#f7f9b7',
500: '#f2f798',
950: '#000000',
},
}SCSS
$custom: #f2f798; $custom-light: #f7f9b7; $custom-dark: #000000;
JSON
{
"hex": "#f2f798",
"rgb": {
"r": 242,
"g": 247,
"b": 152
},
"hsl": {
"h": 63.158,
"s": 85.586,
"l": 78.235
},
"oklch": {
"l": 0.95168,
"c": 0.11782,
"h": 111
},
"luminance": 0.87666
}Semantic roles & 50–950 ramp
primary
#F2F798
secondary
#635DD6
accent
#03E20F
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581