#F2F797#F2F797

#F2F797 is a very light, moderate yellow. Relative luminance 0.876; OKLCH L 95.2% C 0.119 H 111.0°. Best body text is #000000 at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#F2F797
RGBrgb(242, 247, 151)
HSLhsl(63, 86%, 78%)
HSVhsv(63, 39%, 97%)
CMYKcmyk(2%, 0%, 38.9%, 3.1%)
CIE-LABlab(95.01, -15.49, 45.56)
CIE-LCHlch(95.01, 48.12, 108.77°)
OKLaboklab(95.15% -0.0427 0.111)
OKLCHoklch(95.15% 0.119 111)
XYZxyz(75.4655, 87.6344, 42.2118)
Luminance0.8763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F797 #9C97F7
analogous
#F7CC97 #F2F797 #C2F797
triadic
#F2F797 #97F2F7 #F797F2
tetradic
#F2F797 #97F7CC #9C97F7 #F797C2
square
#F2F797 #97F7CC #9C97F7 #F797C2
split-complementary
#F2F797 #97C2F7 #CC97F7
monochromatic
#E4EE25 #EBF35E #F2F797 #F9FBD0 #FBFDE3

Accessibility & contrast

On white

1.13
#F2F797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.53
#F2F797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F797
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F797#FFFFFF#000000##000000
##F2F7971.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)
#FFEF90
Deuteranopia (green-blind)
#FFF29B
Tritanopia (blue-blind)
#FEECDF
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f797;
/* rgb */ color: rgb(242, 247, 151);
/* oklch */ color: oklch(95.2% 0.119 111.0);
Tailwind
colors: {
  custom: {
    50: '#f7f9b7',
    500: '#f2f797',
    950: '#000000',
  },
}
SCSS
$custom: #f2f797;
$custom-light: #f7f9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f797",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 63.125,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.95153,
    "c": 0.11891,
    "h": 111
  },
  "luminance": 0.87633
}

Semantic roles & 50–950 ramp

primary
#F2F797
secondary
#625CD6
accent
#03E20F
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F797

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

Preview Lab → · Contrast checker → · Palette generator →

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