#F2F879#F2F879

#F2F879 is a very light, vivid yellow. Relative luminance 0.874; OKLCH L 95.0% C 0.150 H 111.4°. Best body text is #000000 at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#F2F879
RGBrgb(242, 248, 121)
HSLhsl(63, 90%, 72%)
HSVhsv(63, 51%, 97%)
CMYKcmyk(2.4%, 0%, 51.2%, 2.7%)
CIE-LABlab(94.91, -18.82, 59.54)
CIE-LCHlch(94.91, 62.44, 107.54°)
OKLaboklab(94.96% -0.0548 0.1399)
OKLCHoklch(94.96% 0.15 111.4)
XYZxyz(73.6381, 87.3940, 31.0751)
Luminance0.8739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F879 #7F79F8
analogous
#F8BF79 #F2F879 #B2F879
triadic
#F2F879 #79F2F8 #F879F2
tetradic
#F2F879 #79F8BF #7F79F8 #F879B2
square
#F2F879 #79F8BF #7F79F8 #F879B2
split-complementary
#F2F879 #79B2F8 #BF79F8
monochromatic
#E0EA0C #ECF53F #F2F879 #F8FBB3 #FCFDE2

Accessibility & contrast

On white

1.14
#F2F879 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.48
#F2F879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F879
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F879#FFFFFF#000000##000000
##F2F8791.001.1418.4818.48
#FFFFFF1.141.0021.0021.00
#00000018.4821.001.001.00
##00000018.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE6D
Deuteranopia (green-blind)
#FFF280
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f2f879;
/* rgb */ color: rgb(242, 248, 121);
/* oklch */ color: oklch(95.0% 0.150 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9faa3',
    500: '#f2f879',
    950: '#000000',
  },
}
SCSS
$custom: #f2f879;
$custom-light: #f9faa3;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f879",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 121
  },
  "hsl": {
    "h": 62.835,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.94955,
    "c": 0.15022,
    "h": 111.4
  },
  "luminance": 0.87393
}

Semantic roles & 50–950 ramp

primary
#F2F879
secondary
#4841D4
accent
#00E60B
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F879

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

Preview Lab → · Contrast checker → · Palette generator →

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