#F0D477#F0D477

#F0D477 is a very light, moderate yellow. Relative luminance 0.669; OKLCH L 87.4% C 0.117 H 93.1°. Best body text is #000000 at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#F0D477
RGBrgb(240, 212, 119)
HSLhsl(46, 80%, 70%)
HSVhsv(46, 50%, 94%)
CMYKcmyk(0%, 11.7%, 50.4%, 5.9%)
CIE-LABlab(85.48, -1.89, 49.21)
CIE-LCHlch(85.48, 49.25, 92.20°)
OKLaboklab(87.42% -0.0063 0.1172)
OKLCHoklch(87.42% 0.117 93.1)
XYZxyz(62.8106, 66.9469, 27.0627)
Luminance0.6694 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D477 #7793F0
analogous
#F09877 #F0D477 #CFF077
triadic
#F0D477 #77F0D4 #D477F0
tetradic
#F0D477 #77F098 #7793F0 #F077CF
square
#F0D477 #77F098 #7793F0 #F077CF
split-complementary
#F0D477 #77CFF0 #9877F0
monochromatic
#D5A918 #EAC340 #F0D477 #F6E5AE #FCF6E3

Accessibility & contrast

On white

1.46
#F0D477 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.39
#F0D477 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D477
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D477#FFFFFF#000000##000000
##F0D4771.001.4614.3914.39
#FFFFFF1.461.0021.0021.00
#00000014.3921.001.001.00
##00000014.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D16F
Deuteranopia (green-blind)
#EDD97B
Tritanopia (blue-blind)
#FFC7BE
Achromatopsia (no color)
#D6D6D6

Design tokens & code

CSS
--color: #f0d477;
/* rgb */ color: rgb(240, 212, 119);
/* oklch */ color: oklch(87.4% 0.117 93.1);
Tailwind
colors: {
  custom: {
    50: '#f7e1a0',
    500: '#f0d477',
    950: '#000000',
  },
}
SCSS
$custom: #f0d477;
$custom-light: #f7e1a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d477",
  "rgb": {
    "r": 240,
    "g": 212,
    "b": 119
  },
  "hsl": {
    "h": 46.116,
    "s": 80.132,
    "l": 70.392
  },
  "oklch": {
    "l": 0.87422,
    "c": 0.11735,
    "h": 93.1
  },
  "luminance": 0.66944
}

Semantic roles & 50–950 ramp

primary
#F0D477
secondary
#4261CA
accent
#3ADC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D477

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

Preview Lab → · Contrast checker → · Palette generator →

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