#F2DF76#F2DF76

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

Color values

HEX#F2DF76
RGBrgb(242, 223, 118)
HSLhsl(51, 83%, 71%)
HSVhsv(51, 51%, 95%)
CMYKcmyk(0%, 7.9%, 51.2%, 5.1%)
CIE-LABlab(88.43, -6.75, 53.28)
CIE-LCHlch(88.43, 53.71, 97.22°)
OKLaboklab(89.8% -0.0205 0.126)
OKLCHoklch(89.8% 0.128 99.3)
XYZxyz(66.2778, 72.9631, 27.7281)
Luminance0.7296 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DF76 #7689F2
analogous
#F2A176 #F2DF76 #C7F276
triadic
#F2DF76 #76F2DF #DF76F2
tetradic
#F2DF76 #76F2A1 #7689F2 #F276C7
square
#F2DF76 #76F2A1 #7689F2 #F276C7
split-complementary
#F2DF76 #76C7F2 #A176F2
monochromatic
#D9BB15 #EDD23E #F2DF76 #F7ECAE #FCF8E3

Accessibility & contrast

On white

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

On black

15.59
#F2DF76 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DF76
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DF76#FFFFFF#000000##000000
##F2DF761.001.3515.5915.59
#FFFFFF1.351.0021.0021.00
#00000015.5921.001.001.00
##00000015.5921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2df76;
/* rgb */ color: rgb(242, 223, 118);
/* oklch */ color: oklch(89.8% 0.128 99.3);
Tailwind
colors: {
  custom: {
    50: '#f9e8a0',
    500: '#f2df76',
    950: '#000000',
  },
}
SCSS
$custom: #f2df76;
$custom-light: #f9e8a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2df76",
  "rgb": {
    "r": 242,
    "g": 223,
    "b": 118
  },
  "hsl": {
    "h": 50.806,
    "s": 82.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.89795,
    "c": 0.12766,
    "h": 99.3
  },
  "luminance": 0.72961
}

Semantic roles & 50–950 ramp

primary
#F2DF76
secondary
#4056CC
accent
#28DF06
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2DF76

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

Preview Lab → · Contrast checker → · Palette generator →

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