#F2D977#F2D977

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

Color values

HEX#F2D977
RGBrgb(242, 217, 119)
HSLhsl(48, 83%, 71%)
HSVhsv(48, 51%, 95%)
CMYKcmyk(0%, 10.3%, 50.8%, 5.1%)
CIE-LABlab(86.92, -3.63, 50.99)
CIE-LCHlch(86.92, 51.12, 94.07°)
OKLaboklab(88.6% -0.0114 0.1211)
OKLCHoklch(88.6% 0.122 95.4)
XYZxyz(64.7628, 69.8376, 27.5178)
Luminance0.6984 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D977 #7790F2
analogous
#F29B77 #F2D977 #CDF277
triadic
#F2D977 #77F2D9 #D977F2
tetradic
#F2D977 #77F29B #7790F2 #F277CD
square
#F2D977 #77F29B #7790F2 #F277CD
split-complementary
#F2D977 #77CDF2 #9B77F2
monochromatic
#DAB215 #EDC93F #F2D977 #F7E9AF #FCF7E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2D977#FFFFFF#000000##000000
##F2D9771.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)
#EBD56E
Deuteranopia (green-blind)
#F1DD7B
Tritanopia (blue-blind)
#FFCCC2
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f2d977;
/* rgb */ color: rgb(242, 217, 119);
/* oklch */ color: oklch(88.6% 0.122 95.4);
Tailwind
colors: {
  custom: {
    50: '#f9e4a0',
    500: '#f2d977',
    950: '#000000',
  },
}
SCSS
$custom: #f2d977;
$custom-light: #f9e4a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d977",
  "rgb": {
    "r": 242,
    "g": 217,
    "b": 119
  },
  "hsl": {
    "h": 47.805,
    "s": 82.55,
    "l": 70.784
  },
  "oklch": {
    "l": 0.88601,
    "c": 0.12161,
    "h": 95.4
  },
  "luminance": 0.69835
}

Semantic roles & 50–950 ramp

primary
#F2D977
secondary
#415DCC
accent
#33DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D977

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

Preview Lab → · Contrast checker → · Palette generator →

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