#F2E979#F2E979

#F2E979 is a very light, vivid yellow. Relative luminance 0.785; OKLCH L 91.9% C 0.134 H 104.6°. Best body text is #000000 at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#F2E979
RGBrgb(242, 233, 121)
HSLhsl(56, 82%, 71%)
HSVhsv(56, 50%, 95%)
CMYKcmyk(0%, 3.7%, 50%, 5.1%)
CIE-LABlab(91.02, -11.49, 54.97)
CIE-LCHlch(91.02, 56.15, 101.80°)
OKLaboklab(91.87% -0.0338 0.1299)
OKLCHoklch(91.87% 0.134 104.6)
XYZxyz(69.2099, 78.5376, 29.5990)
Luminance0.7854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E979 #7982F2
analogous
#F2AC79 #F2E979 #BEF279
triadic
#F2E979 #79F2E9 #E979F2
tetradic
#F2E979 #79F2AC #7982F2 #F279BE
square
#F2E979 #79F2AC #7982F2 #F279BE
split-complementary
#F2E979 #79BEF2 #AC79F2
monochromatic
#DBCD15 #EDE041 #F2E979 #F7F2B1 #FCFAE3

Accessibility & contrast

On white

1.26
#F2E979 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.71
#F2E979 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E979
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E979#FFFFFF#000000##000000
##F2E9791.001.2616.7116.71
#FFFFFF1.261.0021.0021.00
#00000016.7121.001.001.00
##00000016.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE26F
Deuteranopia (green-blind)
#FDE87E
Tritanopia (blue-blind)
#FFDCCF
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e979;
/* rgb */ color: rgb(242, 233, 121);
/* oklch */ color: oklch(91.9% 0.134 104.6);
Tailwind
colors: {
  custom: {
    50: '#f8efa2',
    500: '#f2e979',
    950: '#000000',
  },
}
SCSS
$custom: #f2e979;
$custom-light: #f8efa2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e979",
  "rgb": {
    "r": 242,
    "g": 233,
    "b": 121
  },
  "hsl": {
    "h": 55.537,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.91865,
    "c": 0.13427,
    "h": 104.6
  },
  "luminance": 0.78536
}

Semantic roles & 50–950 ramp

primary
#F2E979
secondary
#434DCC
accent
#17DF07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2E979

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

Preview Lab → · Contrast checker → · Palette generator →

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