#F2D778#F2D778

#F2D778 is a very light, moderate yellow. Relative luminance 0.688; OKLCH L 88.2% C 0.119 H 93.9°. Best body text is #000000 at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#F2D778
RGBrgb(242, 215, 120)
HSLhsl(47, 82%, 71%)
HSVhsv(47, 50%, 95%)
CMYKcmyk(0%, 11.2%, 50.4%, 5.1%)
CIE-LABlab(86.42, -2.53, 49.92)
CIE-LCHlch(86.42, 49.98, 92.90°)
OKLaboklab(88.22% -0.0081 0.1188)
OKLCHoklch(88.22% 0.119 93.9)
XYZxyz(64.3108, 68.8369, 27.6650)
Luminance0.6883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D778 #7893F2
analogous
#F29A78 #F2D778 #D0F278
triadic
#F2D778 #78F2D7 #D778F2
tetradic
#F2D778 #78F29A #7893F2 #F278D0
square
#F2D778 #78F29A #7893F2 #F278D0
split-complementary
#F2D778 #78D0F2 #9A78F2
monochromatic
#DBAF15 #EDC640 #F2D778 #F7E8B0 #FCF7E3

Accessibility & contrast

On white

1.42
#F2D778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.77
#F2D778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D778
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D778#FFFFFF#000000##000000
##F2D7781.001.4214.7714.77
#FFFFFF1.421.0021.0021.00
#00000014.7721.001.001.00
##00000014.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D370
Deuteranopia (green-blind)
#F0DC7C
Tritanopia (blue-blind)
#FFCAC1
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f2d778;
/* rgb */ color: rgb(242, 215, 120);
/* oklch */ color: oklch(88.2% 0.119 93.9);
Tailwind
colors: {
  custom: {
    50: '#f9e3a1',
    500: '#f2d778',
    950: '#000000',
  },
}
SCSS
$custom: #f2d778;
$custom-light: #f9e3a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d778",
  "rgb": {
    "r": 242,
    "g": 215,
    "b": 120
  },
  "hsl": {
    "h": 46.721,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88215,
    "c": 0.11906,
    "h": 93.9
  },
  "luminance": 0.68834
}

Semantic roles & 50–950 ramp

primary
#F2D778
secondary
#4261CC
accent
#37DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D778

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

Preview Lab → · Contrast checker → · Palette generator →

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