#F2EC7A#F2EC7A

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

Color values

HEX#F2EC7A
RGBrgb(242, 236, 122)
HSLhsl(57, 82%, 71%)
HSVhsv(57, 50%, 95%)
CMYKcmyk(0%, 2.5%, 49.6%, 5.1%)
CIE-LABlab(91.81, -12.88, 55.43)
CIE-LCHlch(91.81, 56.91, 103.08°)
OKLaboklab(92.49% -0.0377 0.1311)
OKLCHoklch(92.49% 0.136 106.1)
XYZxyz(70.1280, 80.2753, 30.2091)
Luminance0.8027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC7A #7A80F2
analogous
#F2B07A #F2EC7A #BCF27A
triadic
#F2EC7A #7AF2EC #EC7AF2
tetradic
#F2EC7A #7AF2B0 #7A80F2 #F27ABC
square
#F2EC7A #7AF2B0 #7A80F2 #F27ABC
split-complementary
#F2EC7A #7ABCF2 #B07AF2
monochromatic
#DCD216 #EDE442 #F2EC7A #F7F4B2 #FCFBE3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2EC7A#FFFFFF#000000##000000
##F2EC7A1.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)
#FDE570
Deuteranopia (green-blind)
#FFEA80
Tritanopia (blue-blind)
#FFDFD2
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ec7a;
/* rgb */ color: rgb(242, 236, 122);
/* oklch */ color: oklch(92.5% 0.136 106.1);
Tailwind
colors: {
  custom: {
    50: '#f8f2a3',
    500: '#f2ec7a',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec7a;
$custom-light: #f8f2a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec7a",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 122
  },
  "hsl": {
    "h": 57,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.92491,
    "c": 0.13638,
    "h": 106.1
  },
  "luminance": 0.80273
}

Semantic roles & 50–950 ramp

primary
#F2EC7A
secondary
#444BCD
accent
#12DF07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F2EC7A

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

Preview Lab → · Contrast checker → · Palette generator →

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