#F2D978#F2D978

#F2D978 is a very light, vivid yellow. Relative luminance 0.699; OKLCH L 88.6% C 0.121 H 95.3°. Best body text is #000000 at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#F2D978
RGBrgb(242, 217, 120)
HSLhsl(48, 82%, 71%)
HSVhsv(48, 50%, 95%)
CMYKcmyk(0%, 10.3%, 50.4%, 5.1%)
CIE-LABlab(86.93, -3.54, 50.53)
CIE-LCHlch(86.93, 50.65, 94.01°)
OKLaboklab(88.62% -0.0111 0.1201)
OKLCHoklch(88.62% 0.121 95.3)
XYZxyz(64.8231, 69.8617, 27.8358)
Luminance0.6986 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D978 #7891F2
analogous
#F29C78 #F2D978 #CEF278
triadic
#F2D978 #78F2D9 #D978F2
tetradic
#F2D978 #78F29C #7891F2 #F278CE
square
#F2D978 #78F29C #7891F2 #F278CE
split-complementary
#F2D978 #78CEF2 #9C78F2
monochromatic
#DBB215 #EDC940 #F2D978 #F7E9B0 #FCF7E3

Accessibility & contrast

On white

1.40
#F2D978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.97
#F2D978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D978
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D978#FFFFFF#000000##000000
##F2D9781.001.4014.9714.97
#FFFFFF1.401.0021.0021.00
#00000014.9721.001.001.00
##00000014.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD570
Deuteranopia (green-blind)
#F1DD7C
Tritanopia (blue-blind)
#FFCCC2
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f2d978;
/* rgb */ color: rgb(242, 217, 120);
/* oklch */ color: oklch(88.6% 0.121 95.3);
Tailwind
colors: {
  custom: {
    50: '#f9e4a1',
    500: '#f2d978',
    950: '#000000',
  },
}
SCSS
$custom: #f2d978;
$custom-light: #f9e4a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d978",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 120
  },
  "hsl": {
    "h": 47.705,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88615,
    "c": 0.12064,
    "h": 95.3
  },
  "luminance": 0.69859
}

Semantic roles & 50–950 ramp

primary
#F2D978
secondary
#425ECC
accent
#33DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D978

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

Preview Lab → · Contrast checker → · Palette generator →

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