#F2EC99#F2EC99

#F2EC99 is a very light, moderate yellow. Relative luminance 0.812; OKLCH L 92.9% C 0.104 H 104.7°. Best body text is #000000 at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#F2EC99
RGBrgb(242, 236, 153)
HSLhsl(56, 77%, 77%)
HSVhsv(56, 37%, 95%)
CMYKcmyk(0%, 2.5%, 36.8%, 5.1%)
CIE-LABlab(92.21, -9.85, 40.99)
CIE-LCHlch(92.21, 42.16, 103.51°)
OKLaboklab(92.94% -0.0264 0.1006)
OKLCHoklch(92.94% 0.104 104.7)
XYZxyz(72.3642, 81.1697, 41.9861)
Luminance0.8117 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC99 #999FF2
analogous
#F2BF99 #F2EC99 #CCF299
triadic
#F2EC99 #99F2EC #EC99F2
tetradic
#F2EC99 #99F2BF #999FF2 #F299CC
square
#F2EC99 #99F2BF #999FF2 #F299CC
split-complementary
#F2EC99 #99CCF2 #BF99F2
monochromatic
#E4D82C #EBE263 #F2EC99 #F9F6CF #FCFAE4

Accessibility & contrast

On white

1.22
#F2EC99 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.23
#F2EC99 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC99
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC99#FFFFFF#000000##000000
##F2EC991.001.2217.2317.23
#FFFFFF1.221.0021.0021.00
#00000017.2321.001.001.00
##00000017.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE693
Deuteranopia (green-blind)
#FCEB9C
Tritanopia (blue-blind)
#FEE2D7
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2ec99;
/* rgb */ color: rgb(242, 236, 153);
/* oklch */ color: oklch(92.9% 0.104 104.7);
Tailwind
colors: {
  custom: {
    50: '#f7f2b8',
    500: '#f2ec99',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec99;
$custom-light: #f7f2b8;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec99",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 153
  },
  "hsl": {
    "h": 55.955,
    "s": 77.391,
    "l": 77.451
  },
  "oklch": {
    "l": 0.92937,
    "c": 0.10404,
    "h": 104.7
  },
  "luminance": 0.81168
}

Semantic roles & 50–950 ramp

primary
#F2EC99
secondary
#6067D0
accent
#1ADA0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2EC99

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

Preview Lab → · Contrast checker → · Palette generator →

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