#F2EC7C#F2EC7C

#F2EC7C is a very light, vivid yellow. Relative luminance 0.803; OKLCH L 92.5% C 0.134 H 106.0°. Best body text is #000000 at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#F2EC7C
RGBrgb(242, 236, 124)
HSLhsl(57, 82%, 72%)
HSVhsv(57, 49%, 95%)
CMYKcmyk(0%, 2.5%, 48.8%, 5.1%)
CIE-LABlab(91.83, -12.71, 54.53)
CIE-LCHlch(91.83, 55.99, 103.12°)
OKLaboklab(92.52% -0.037 0.1292)
OKLCHoklch(92.52% 0.134 106)
XYZxyz(70.2532, 80.3253, 30.8685)
Luminance0.8032 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC7C #7C82F2
analogous
#F2B17C #F2EC7C #BDF27C
triadic
#F2EC7C #7CF2EC #EC7CF2
tetradic
#F2EC7C #7CF2B1 #7C82F2 #F27CBD
square
#F2EC7C #7CF2B1 #7C82F2 #F27CBD
split-complementary
#F2EC7C #7CBDF2 #B17CF2
monochromatic
#DED316 #ECE444 #F2EC7C #F8F4B4 #FCFBE3

Accessibility & contrast

On white

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

On black

17.06
#F2EC7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC7C
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC7C#FFFFFF#000000##000000
##F2EC7C1.001.2317.0617.06
#FFFFFF1.231.0021.0021.00
#00000017.0621.001.001.00
##00000017.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE572
Deuteranopia (green-blind)
#FFEA81
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f2ec7c;
/* rgb */ color: rgb(242, 236, 124);
/* oklch */ color: oklch(92.5% 0.134 106.0);
Tailwind
colors: {
  custom: {
    50: '#f8f2a4',
    500: '#f2ec7c',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec7c;
$custom-light: #f8f2a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec7c",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 124
  },
  "hsl": {
    "h": 56.949,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.92516,
    "c": 0.13445,
    "h": 106
  },
  "luminance": 0.80323
}

Semantic roles & 50–950 ramp

primary
#F2EC7C
secondary
#454CCD
accent
#12DE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2EC7C

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

Preview Lab → · Contrast checker → · Palette generator →

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