#F0D877#F0D877

#F0D877 is a very light, vivid yellow. Relative luminance 0.690; OKLCH L 88.2% C 0.120 H 95.8°. Best body text is #000000 at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#F0D877
RGBrgb(240, 216, 119)
HSLhsl(48, 80%, 70%)
HSVhsv(48, 50%, 94%)
CMYKcmyk(0%, 10%, 50.4%, 5.9%)
CIE-LABlab(86.49, -3.93, 50.44)
CIE-LCHlch(86.49, 50.59, 94.45°)
OKLaboklab(88.22% -0.0122 0.1199)
OKLCHoklch(88.22% 0.121 95.8)
XYZxyz(63.8229, 68.9715, 27.4002)
Luminance0.6897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D877 #778FF0
analogous
#F09B77 #F0D877 #CBF077
triadic
#F0D877 #77F0D8 #D877F0
tetradic
#F0D877 #77F09B #778FF0 #F077CB
square
#F0D877 #77F09B #778FF0 #F077CB
split-complementary
#F0D877 #77CBF0 #9B77F0
monochromatic
#D5AF18 #EAC840 #F0D877 #F6E8AE #FCF7E3

Accessibility & contrast

On white

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

On black

14.79
#F0D877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D877
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D877#FFFFFF#000000##000000
##F0D8771.001.4214.7914.79
#FFFFFF1.421.0021.0021.00
#00000014.7921.001.001.00
##00000014.7921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0d877;
/* rgb */ color: rgb(240, 216, 119);
/* oklch */ color: oklch(88.2% 0.120 95.8);
Tailwind
colors: {
  custom: {
    50: '#f7e3a0',
    500: '#f0d877',
    950: '#000000',
  },
}
SCSS
$custom: #f0d877;
$custom-light: #f7e3a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d877",
  "rgb": {
    "r": 240,
    "g": 216,
    "b": 119
  },
  "hsl": {
    "h": 48.099,
    "s": 80.132,
    "l": 70.392
  },
  "oklch": {
    "l": 0.88222,
    "c": 0.1205,
    "h": 95.8
  },
  "luminance": 0.68969
}

Semantic roles & 50–950 ramp

primary
#F0D877
secondary
#425DCA
accent
#33DC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D877

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

Preview Lab → · Contrast checker → · Palette generator →

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