#F2EF7C#F2EF7C

#F2EF7C is a very light, vivid yellow. Relative luminance 0.821; OKLCH L 93.1% C 0.138 H 107.5°. Best body text is #000000 at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#F2EF7C
RGBrgb(242, 239, 124)
HSLhsl(58, 82%, 72%)
HSVhsv(58, 49%, 95%)
CMYKcmyk(0%, 1.2%, 48.8%, 5.1%)
CIE-LABlab(92.60, -14.19, 55.45)
CIE-LCHlch(92.60, 57.24, 104.35°)
OKLaboklab(93.13% -0.0413 0.1313)
OKLCHoklch(93.13% 0.138 107.5)
XYZxyz(71.1242, 82.0673, 31.1588)
Luminance0.8206 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EF7C #7C7FF2
analogous
#F2B47C #F2EF7C #BAF27C
triadic
#F2EF7C #7CF2EF #EF7CF2
tetradic
#F2EF7C #7CF2B4 #7C7FF2 #F27CBA
square
#F2EF7C #7CF2B4 #7C7FF2 #F27CBA
split-complementary
#F2EF7C #7CBAF2 #B47CF2
monochromatic
#DED916 #ECE844 #F2EF7C #F8F6B4 #FCFCE3

Accessibility & contrast

On white

1.21
#F2EF7C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.41
#F2EF7C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EF7C
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EF7C#FFFFFF#000000##000000
##F2EF7C1.001.2117.4117.41
#FFFFFF1.211.0021.0021.00
#00000017.4121.001.001.00
##00000017.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE772
Deuteranopia (green-blind)
#FFEC82
Tritanopia (blue-blind)
#FFE2D5
Achromatopsia (no color)
#EAEAEA

Design tokens & code

CSS
--color: #f2ef7c;
/* rgb */ color: rgb(242, 239, 124);
/* oklch */ color: oklch(93.1% 0.138 107.5);
Tailwind
colors: {
  custom: {
    50: '#f8f4a4',
    500: '#f2ef7c',
    950: '#000000',
  },
}
SCSS
$custom: #f2ef7c;
$custom-light: #f8f4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ef7c",
  "rgb": {
    "r": 242,
    "g": 239,
    "b": 124
  },
  "hsl": {
    "h": 58.475,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.93132,
    "c": 0.1376,
    "h": 107.5
  },
  "luminance": 0.82065
}

Semantic roles & 50–950 ramp

primary
#F2EF7C
secondary
#4549CD
accent
#0DDE07
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#17170F
muted
#858580

Preview Lab

Preview with #F2EF7C

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

Preview Lab → · Contrast checker → · Palette generator →

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