#F2DC78#F2DC78

#F2DC78 is a very light, vivid yellow. Relative luminance 0.714; OKLCH L 89.2% C 0.123 H 97.2°. Best body text is #000000 at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#F2DC78
RGBrgb(242, 220, 120)
HSLhsl(49, 82%, 71%)
HSVhsv(49, 50%, 95%)
CMYKcmyk(0%, 9.1%, 50.4%, 5.1%)
CIE-LABlab(87.69, -5.06, 51.45)
CIE-LCHlch(87.69, 51.70, 95.62°)
OKLaboklab(89.22% -0.0155 0.1222)
OKLCHoklch(89.22% 0.123 97.2)
XYZxyz(65.6034, 71.4223, 28.0959)
Luminance0.7142 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2DC78 #788EF2
analogous
#F29F78 #F2DC78 #CBF278
triadic
#F2DC78 #78F2DC #DC78F2
tetradic
#F2DC78 #78F29F #788EF2 #F278CB
square
#F2DC78 #78F29F #788EF2 #F278CB
split-complementary
#F2DC78 #78CBF2 #9F78F2
monochromatic
#DBB715 #EDCE40 #F2DC78 #F7EAB0 #FCF8E3

Accessibility & contrast

On white

1.37
#F2DC78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.28
#F2DC78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2DC78
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2DC78#FFFFFF#000000##000000
##F2DC781.001.3715.2815.28
#FFFFFF1.371.0021.0021.00
#00000015.2821.001.001.00
##00000015.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD76F
Deuteranopia (green-blind)
#F3DF7C
Tritanopia (blue-blind)
#FFCFC5
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f2dc78;
/* rgb */ color: rgb(242, 220, 120);
/* oklch */ color: oklch(89.2% 0.123 97.2);
Tailwind
colors: {
  custom: {
    50: '#f9e6a1',
    500: '#f2dc78',
    950: '#000000',
  },
}
SCSS
$custom: #f2dc78;
$custom-light: #f9e6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2dc78",
  "rgb": {
    "r": 242,
    "g": 220,
    "b": 120
  },
  "hsl": {
    "h": 49.18,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.89216,
    "c": 0.12313,
    "h": 97.2
  },
  "luminance": 0.7142
}

Semantic roles & 50–950 ramp

primary
#F2DC78
secondary
#425BCC
accent
#2EDF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2DC78

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

Preview Lab → · Contrast checker → · Palette generator →

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