#F2EC57#F2EC57

#F2EC57 is a very light, vivid yellow. Relative luminance 0.796; OKLCH L 92.1% C 0.166 H 107.0°. Best body text is #000000 at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#F2EC57
RGBrgb(242, 236, 87)
HSLhsl(58, 86%, 65%)
HSVhsv(58, 64%, 95%)
CMYKcmyk(0%, 2.5%, 64%, 5.1%)
CIE-LABlab(91.49, -15.38, 70.19)
CIE-LCHlch(91.49, 71.85, 102.36°)
OKLaboklab(92.13% -0.0485 0.1585)
OKLCHoklch(92.13% 0.166 107)
XYZxyz(68.3361, 79.5585, 20.7716)
Luminance0.7956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC57 #575DF2
analogous
#F29E57 #F2EC57 #ABF257
triadic
#F2EC57 #57F2EC #EC57F2
tetradic
#F2EC57 #57F29E #575DF2 #F257AB
square
#F2EC57 #57F29E #575DF2 #F257AB
split-complementary
#F2EC57 #57ABF2 #9E57F2
monochromatic
#C0B90F #EEE61E #F2EC57 #F6F290 #FBF9C9

Accessibility & contrast

On white

1.24
#F2EC57 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.91
#F2EC57 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC57
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC57#FFFFFF#000000##000000
##F2EC571.001.2416.9116.91
#FFFFFF1.241.0021.0021.00
#00000016.9121.001.001.00
##00000016.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE343
Deuteranopia (green-blind)
#FFE960
Tritanopia (blue-blind)
#FFDDCD
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ec57;
/* rgb */ color: rgb(242, 236, 87);
/* oklch */ color: oklch(92.1% 0.166 107.0);
Tailwind
colors: {
  custom: {
    50: '#faf18d',
    500: '#f2ec57',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec57;
$custom-light: #faf18d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec57",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 87
  },
  "hsl": {
    "h": 57.677,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.92131,
    "c": 0.16574,
    "h": 107
  },
  "luminance": 0.79556
}

Semantic roles & 50–950 ramp

primary
#F2EC57
secondary
#3035BE
accent
#0CE203
background
#FFFFFC
surface
#FFFEF4
border
#D7D6CE
text
#18160D
muted
#86857F

Preview Lab

Preview with #F2EC57

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

Preview Lab → · Contrast checker → · Palette generator →

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