#F2ED8A#F2ED8A

#F2ED8A is a very light, vivid yellow. Relative luminance 0.813; OKLCH L 92.9% C 0.121 H 106.0°. Best body text is #000000 at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#F2ED8A
RGBrgb(242, 237, 138)
HSLhsl(57, 80%, 75%)
HSVhsv(57, 43%, 95%)
CMYKcmyk(0%, 2.1%, 43%, 5.1%)
CIE-LABlab(92.26, -11.91, 48.40)
CIE-LCHlch(92.26, 49.85, 103.82°)
OKLaboklab(92.91% -0.0334 0.1167)
OKLCHoklch(92.91% 0.121 106)
XYZxyz(71.4910, 81.2824, 35.9629)
Luminance0.8128 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED8A #8A8FF2
analogous
#F2B98A #F2ED8A #C3F28A
triadic
#F2ED8A #8AF2ED #ED8AF2
tetradic
#F2ED8A #8AF2B9 #8A8FF2 #F28AC3
square
#F2ED8A #8AF2B9 #8A8FF2 #F28AC3
split-complementary
#F2ED8A #8AC3F2 #B98AF2
monochromatic
#E6DC1C #ECE553 #F2ED8A #F8F5C1 #FCFBE3

Accessibility & contrast

On white

1.22
#F2ED8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.26
#F2ED8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2ED8A
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2ED8A#FFFFFF#000000##000000
##F2ED8A1.001.2217.2617.26
#FFFFFF1.221.0021.0021.00
#00000017.2621.001.001.00
##00000017.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FCE682
Deuteranopia (green-blind)
#FFEB8E
Tritanopia (blue-blind)
#FFE1D5
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2ed8a;
/* rgb */ color: rgb(242, 237, 138);
/* oklch */ color: oklch(92.9% 0.121 106.0);
Tailwind
colors: {
  custom: {
    50: '#f8f2ae',
    500: '#f2ed8a',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed8a;
$custom-light: #f8f2ae;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed8a",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 138
  },
  "hsl": {
    "h": 57.115,
    "s": 80,
    "l": 74.51
  },
  "oklch": {
    "l": 0.9291,
    "c": 0.12139,
    "h": 106
  },
  "luminance": 0.81281
}

Semantic roles & 50–950 ramp

primary
#F2ED8A
secondary
#5258CE
accent
#13DC09
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#171610
muted
#858581

Preview Lab

Preview with #F2ED8A

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

Preview Lab → · Contrast checker → · Palette generator →

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