#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
RGBrgb(242, 247, 152)
HSLhsl(63, 86%, 78%)
HSVhsv(63, 38%, 97%)
CMYKcmyk(2%, 0%, 38.5%, 3.1%)
CIE-LABlab(95.02, -15.38, 45.09)
CIE-LCHlch(95.02, 47.64, 108.83°)
OKLaboklab(95.17% -0.0423 0.11)
OKLCHoklch(95.17% 0.118 111)
XYZxyz(75.5470, 87.6670, 42.6414)
Luminance0.8767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

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
##F2F7981.001.1318.5318.53
#FFFFFF1.131.0021.0021.00
#00000018.5321.001.001.00
##00000018.5321.001.001.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

Preview Lab

Preview with #F2F798

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F2F798 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva