#F0D474#F0D474

#F0D474 is a very light, vivid yellow. Relative luminance 0.669; OKLCH L 87.4% C 0.120 H 93.5°. Best body text is #000000 at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#F0D474
RGBrgb(240, 212, 116)
HSLhsl(46, 81%, 70%)
HSVhsv(46, 52%, 94%)
CMYKcmyk(0%, 11.7%, 51.7%, 5.9%)
CIE-LABlab(85.44, -2.14, 50.61)
CIE-LCHlch(85.44, 50.66, 92.43°)
OKLaboklab(87.38% -0.0073 0.12)
OKLCHoklch(87.38% 0.12 93.5)
XYZxyz(62.6333, 66.8760, 26.1288)
Luminance0.6687 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D474 #7490F0
analogous
#F09674 #F0D474 #CEF074
triadic
#F0D474 #74F0D4 #D474F0
tetradic
#F0D474 #74F096 #7490F0 #F074CE
square
#F0D474 #74F096 #7490F0 #F074CE
split-complementary
#F0D474 #74CEF0 #9674F0
monochromatic
#D3A817 #EAC33D #F0D474 #F6E5AB #FCF6E2

Accessibility & contrast

On white

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

On black

14.37
#F0D474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D474
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D474#FFFFFF#000000##000000
##F0D4741.001.4614.3714.37
#FFFFFF1.461.0021.0021.00
#00000014.3721.001.001.00
##00000014.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E6D16C
Deuteranopia (green-blind)
#EDD978
Tritanopia (blue-blind)
#FFC7BE
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d474;
/* rgb */ color: rgb(240, 212, 116);
/* oklch */ color: oklch(87.4% 0.120 93.5);
Tailwind
colors: {
  custom: {
    50: '#f7e19e',
    500: '#f0d474',
    950: '#000000',
  },
}
SCSS
$custom: #f0d474;
$custom-light: #f7e19e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d474",
  "rgb": {
    "r": 240,
    "g": 212,
    "b": 116
  },
  "hsl": {
    "h": 46.452,
    "s": 80.519,
    "l": 69.804
  },
  "oklch": {
    "l": 0.87382,
    "c": 0.12023,
    "h": 93.5
  },
  "luminance": 0.66873
}

Semantic roles & 50–950 ramp

primary
#F0D474
secondary
#3F5EC9
accent
#39DD09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150E
muted
#85847F

Preview Lab

Preview with #F0D474

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

Preview Lab → · Contrast checker → · Palette generator →

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