#F0E479#F0E479

#F0E479 is a very light, vivid yellow. Relative luminance 0.754; OKLCH L 90.7% C 0.129 H 102.9°. Best body text is #000000 at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#F0E479
RGBrgb(240, 228, 121)
HSLhsl(54, 80%, 71%)
HSVhsv(54, 50%, 94%)
CMYKcmyk(0%, 5%, 49.6%, 5.9%)
CIE-LABlab(89.58, -9.80, 53.20)
CIE-LCHlch(89.58, 54.09, 100.43°)
OKLaboklab(90.68% -0.0289 0.1261)
OKLCHoklch(90.68% 0.129 102.9)
XYZxyz(67.1316, 75.3947, 29.1018)
Luminance0.7539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E479 #7985F0
analogous
#F0A879 #F0E479 #C0F079
triadic
#F0E479 #79F0E4 #E479F0
tetradic
#F0E479 #79F0A8 #7985F0 #F079C0
square
#F0E479 #79F0A8 #7985F0 #F079C0
split-complementary
#F0E479 #79C0F0 #A879F0
monochromatic
#D7C318 #EAD942 #F0E479 #F6EFB0 #FCF9E3

Accessibility & contrast

On white

1.31
#F0E479 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.08
#F0E479 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E479
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E479#FFFFFF#000000##000000
##F0E4791.001.3116.0816.08
#FFFFFF1.311.0021.0021.00
#00000016.0821.001.001.00
##00000016.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DE6F
Deuteranopia (green-blind)
#F9E47E
Tritanopia (blue-blind)
#FFD7CB
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f0e479;
/* rgb */ color: rgb(240, 228, 121);
/* oklch */ color: oklch(90.7% 0.129 102.9);
Tailwind
colors: {
  custom: {
    50: '#f7eca2',
    500: '#f0e479',
    950: '#000000',
  },
}
SCSS
$custom: #f0e479;
$custom-light: #f7eca2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e479",
  "rgb": {
    "r": 240,
    "g": 228,
    "b": 121
  },
  "hsl": {
    "h": 53.95,
    "s": 79.866,
    "l": 70.784
  },
  "oklch": {
    "l": 0.90676,
    "c": 0.12937,
    "h": 102.9
  },
  "luminance": 0.75393
}

Semantic roles & 50–950 ramp

primary
#F0E479
secondary
#4351CA
accent
#1FDC09
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#17160F
muted
#858480

Preview Lab

Preview with #F0E479

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

Preview Lab → · Contrast checker → · Palette generator →

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