#F2D877#F2D877

#F2D877 is a very light, vivid yellow. Relative luminance 0.693; OKLCH L 88.4% C 0.121 H 94.7°. Best body text is #000000 at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#F2D877
RGBrgb(242, 216, 119)
HSLhsl(47, 83%, 71%)
HSVhsv(47, 51%, 95%)
CMYKcmyk(0%, 10.7%, 50.8%, 5.1%)
CIE-LABlab(86.66, -3.12, 50.69)
CIE-LCHlch(86.66, 50.79, 93.52°)
OKLaboklab(88.4% -0.0099 0.1204)
OKLCHoklch(88.4% 0.121 94.7)
XYZxyz(64.5058, 69.3236, 27.4322)
Luminance0.6932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2D877 #7791F2
analogous
#F29A77 #F2D877 #CEF277
triadic
#F2D877 #77F2D8 #D877F2
tetradic
#F2D877 #77F29A #7791F2 #F277CE
square
#F2D877 #77F29A #7791F2 #F277CE
split-complementary
#F2D877 #77CEF2 #9A77F2
monochromatic
#DAB015 #EDC83F #F2D877 #F7E8AF #FCF7E3

Accessibility & contrast

On white

1.41
#F2D877 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.86
#F2D877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2D877
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2D877#FFFFFF#000000##000000
##F2D8771.001.4114.8614.86
#FFFFFF1.411.0021.0021.00
#00000014.8621.001.001.00
##00000014.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EAD46F
Deuteranopia (green-blind)
#F0DC7B
Tritanopia (blue-blind)
#FFCBC1
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f2d877;
/* rgb */ color: rgb(242, 216, 119);
/* oklch */ color: oklch(88.4% 0.121 94.7);
Tailwind
colors: {
  custom: {
    50: '#f9e3a0',
    500: '#f2d877',
    950: '#000000',
  },
}
SCSS
$custom: #f2d877;
$custom-light: #f9e3a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f2d877",
  "rgb": {
    "r": 242,
    "g": 216,
    "b": 119
  },
  "hsl": {
    "h": 47.317,
    "s": 82.55,
    "l": 70.784
  },
  "oklch": {
    "l": 0.88401,
    "c": 0.12081,
    "h": 94.7
  },
  "luminance": 0.69321
}

Semantic roles & 50–950 ramp

primary
#F2D877
secondary
#415ECC
accent
#34DF07
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F2D877

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

Preview Lab → · Contrast checker → · Palette generator →

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