#F2EC79#F2EC79

#F2EC79 is a very light, vivid yellow. Relative luminance 0.802; OKLCH L 92.5% C 0.137 H 106.1°. Best body text is #000000 at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#F2EC79
RGBrgb(242, 236, 121)
HSLhsl(57, 82%, 71%)
HSVhsv(57, 50%, 95%)
CMYKcmyk(0%, 2.5%, 50%, 5.1%)
CIE-LABlab(91.80, -12.97, 55.88)
CIE-LCHlch(91.80, 57.37, 103.06°)
OKLaboklab(92.48% -0.0381 0.1319)
OKLCHoklch(92.48% 0.137 106.1)
XYZxyz(70.0664, 80.2506, 29.8845)
Luminance0.8025 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC79 #797FF2
analogous
#F2AF79 #F2EC79 #BBF279
triadic
#F2EC79 #79F2EC #EC79F2
tetradic
#F2EC79 #79F2AF #797FF2 #F279BB
square
#F2EC79 #79F2AF #797FF2 #F279BB
split-complementary
#F2EC79 #79BBF2 #AF79F2
monochromatic
#DBD215 #EDE441 #F2EC79 #F7F4B1 #FCFBE3

Accessibility & contrast

On white

1.23
#F2EC79 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.05
#F2EC79 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC79
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC79#FFFFFF#000000##000000
##F2EC791.001.2317.0517.05
#FFFFFF1.231.0021.0021.00
#00000017.0521.001.001.00
##00000017.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE56E
Deuteranopia (green-blind)
#FFEA7F
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ec79;
/* rgb */ color: rgb(242, 236, 121);
/* oklch */ color: oklch(92.5% 0.137 106.1);
Tailwind
colors: {
  custom: {
    50: '#f8f2a2',
    500: '#f2ec79',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec79;
$custom-light: #f8f2a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec79",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 121
  },
  "hsl": {
    "h": 57.025,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.92479,
    "c": 0.13733,
    "h": 106.1
  },
  "luminance": 0.80249
}

Semantic roles & 50–950 ramp

primary
#F2EC79
secondary
#434ACC
accent
#11DF07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2EC79

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

Preview Lab → · Contrast checker → · Palette generator →

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