#F2EC74#F2EC74

#F2EC74 is a very light, vivid yellow. Relative luminance 0.801; OKLCH L 92.4% C 0.142 H 106.3°. Best body text is #000000 at 17.03:1 contrast (WCAG AA passes).

Color values

HEX#F2EC74
RGBrgb(242, 236, 116)
HSLhsl(57, 83%, 70%)
HSVhsv(57, 52%, 95%)
CMYKcmyk(0%, 2.5%, 52.1%, 5.1%)
CIE-LABlab(91.74, -13.38, 58.11)
CIE-LCHlch(91.74, 59.63, 102.97°)
OKLaboklab(92.42% -0.0398 0.1363)
OKLCHoklch(92.42% 0.142 106.3)
XYZxyz(69.7677, 80.1311, 28.3113)
Luminance0.8013 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC74 #747AF2
analogous
#F2AD74 #F2EC74 #B9F274
triadic
#F2EC74 #74F2EC #EC74F2
tetradic
#F2EC74 #74F2AD #747AF2 #F274B9
square
#F2EC74 #74F2AD #747AF2 #F274B9
split-complementary
#F2EC74 #74B9F2 #AD74F2
monochromatic
#D7CE14 #EDE43C #F2EC74 #F7F4AC #FCFBE3

Accessibility & contrast

On white

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

On black

17.03
#F2EC74 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC74
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC74#FFFFFF#000000##000000
##F2EC741.001.2317.0317.03
#FFFFFF1.231.0021.0021.00
#00000017.0321.001.001.00
##00000017.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE469
Deuteranopia (green-blind)
#FFEA7A
Tritanopia (blue-blind)
#FFDFD1
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ec74;
/* rgb */ color: rgb(242, 236, 116);
/* oklch */ color: oklch(92.4% 0.142 106.3);
Tailwind
colors: {
  custom: {
    50: '#f9f19f',
    500: '#f2ec74',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec74;
$custom-light: #f9f19f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec74",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 116
  },
  "hsl": {
    "h": 57.143,
    "s": 82.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.92419,
    "c": 0.142,
    "h": 106.3
  },
  "luminance": 0.80129
}

Semantic roles & 50–950 ramp

primary
#F2EC74
secondary
#3E45CC
accent
#11DF06
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F2EC74

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

Preview Lab → · Contrast checker → · Palette generator →

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