#F2DF79#F2DF79

#F2DF79 is a very light, vivid yellow. Relative luminance 0.730; OKLCH L 89.8% C 0.125 H 99.0°. Best body text is #000000 at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#F2DF79
RGBrgb(242, 223, 121)
HSLhsl(51, 82%, 71%)
HSVhsv(51, 50%, 95%)
CMYKcmyk(0%, 7.9%, 50%, 5.1%)
CIE-LABlab(88.46, -6.49, 51.90)
CIE-LCHlch(88.46, 52.31, 97.13°)
OKLaboklab(89.83% -0.0195 0.1232)
OKLCHoklch(89.83% 0.125 99)
XYZxyz(66.4589, 73.0355, 28.6820)
Luminance0.7303 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF79 #798CF2
analogous
#F2A279 #F2DF79 #C8F279
triadic
#F2DF79 #79F2DF #DF79F2
tetradic
#F2DF79 #79F2A2 #798CF2 #F279C8
square
#F2DF79 #79F2A2 #798CF2 #F279C8
split-complementary
#F2DF79 #79C8F2 #A279F2
monochromatic
#DBBC15 #EDD241 #F2DF79 #F7ECB1 #FCF8E3

Accessibility & contrast

On white

1.35
#F2DF79 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.61
#F2DF79 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF79
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF79#FFFFFF#000000##000000
##F2DF791.001.3515.6115.61
#FFFFFF1.351.0021.0021.00
#00000015.6121.001.001.00
##00000015.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA70
Deuteranopia (green-blind)
#F6E17D
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f2df79;
/* rgb */ color: rgb(242, 223, 121);
/* oklch */ color: oklch(89.8% 0.125 99.0);
Tailwind
colors: {
  custom: {
    50: '#f8e8a2',
    500: '#f2df79',
    950: '#000000',
  },
}
SCSS
$custom: #f2df79;
$custom-light: #f8e8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df79",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 121
  },
  "hsl": {
    "h": 50.579,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.89834,
    "c": 0.12477,
    "h": 99
  },
  "luminance": 0.73033
}

Semantic roles & 50–950 ramp

primary
#F2DF79
secondary
#4358CC
accent
#29DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2DF79

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

Preview Lab → · Contrast checker → · Palette generator →

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