#F2EC8A#F2EC8A

#F2EC8A is a very light, vivid yellow. Relative luminance 0.807; OKLCH L 92.7% C 0.120 H 105.4°. Best body text is #000000 at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#F2EC8A
RGBrgb(242, 236, 138)
HSLhsl(57, 80%, 75%)
HSVhsv(57, 43%, 95%)
CMYKcmyk(0%, 2.5%, 43%, 5.1%)
CIE-LABlab(92.00, -11.41, 48.08)
CIE-LCHlch(92.00, 49.42, 103.35°)
OKLaboklab(92.71% -0.032 0.116)
OKLCHoklch(92.71% 0.12 105.4)
XYZxyz(71.2023, 80.7050, 35.8667)
Luminance0.8070 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC8A #8A90F2
analogous
#F2B88A #F2EC8A #C4F28A
triadic
#F2EC8A #8AF2EC #EC8AF2
tetradic
#F2EC8A #8AF2B8 #8A90F2 #F28AC4
square
#F2EC8A #8AF2B8 #8A90F2 #F28AC4
split-complementary
#F2EC8A #8AC4F2 #B88AF2
monochromatic
#E6DA1C #ECE353 #F2EC8A #F8F5C1 #FCFBE3

Accessibility & contrast

On white

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

On black

17.14
#F2EC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC8A
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC8A#FFFFFF#000000##000000
##F2EC8A1.001.2317.1417.14
#FFFFFF1.231.0021.0021.00
#00000017.1421.001.001.00
##00000017.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE582
Deuteranopia (green-blind)
#FEEA8E
Tritanopia (blue-blind)
#FFE0D4
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f2ec8a;
/* rgb */ color: rgb(242, 236, 138);
/* oklch */ color: oklch(92.7% 0.120 105.4);
Tailwind
colors: {
  custom: {
    50: '#f8f2ae',
    500: '#f2ec8a',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec8a;
$custom-light: #f8f2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec8a",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 138
  },
  "hsl": {
    "h": 56.538,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.92706,
    "c": 0.12031,
    "h": 105.4
  },
  "luminance": 0.80703
}

Semantic roles & 50–950 ramp

primary
#F2EC8A
secondary
#5259CE
accent
#15DC09
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #F2EC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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