#F0E478#F0E478

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

Color values

HEX#F0E478
RGBrgb(240, 228, 120)
HSLhsl(54, 80%, 71%)
HSVhsv(54, 50%, 94%)
CMYKcmyk(0%, 5%, 50%, 5.9%)
CIE-LABlab(89.57, -9.88, 53.66)
CIE-LCHlch(89.57, 54.56, 100.44°)
OKLaboklab(90.66% -0.0292 0.127)
OKLCHoklch(90.66% 0.13 103)
XYZxyz(67.0706, 75.3703, 28.7806)
Luminance0.7537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E478 #7884F0
analogous
#F0A878 #F0E478 #C0F078
triadic
#F0E478 #78F0E4 #E478F0
tetradic
#F0E478 #78F0A8 #7884F0 #F078C0
square
#F0E478 #78F0A8 #7884F0 #F078C0
split-complementary
#F0E478 #78C0F0 #A878F0
monochromatic
#D6C318 #EAD941 #F0E478 #F6EFAF #FCF9E3

Accessibility & contrast

On white

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

On black

16.07
#F0E478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E478
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E478#FFFFFF#000000##000000
##F0E4781.001.3116.0716.07
#FFFFFF1.311.0021.0021.00
#00000016.0721.001.001.00
##00000016.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f0e478;
/* rgb */ color: rgb(240, 228, 120);
/* oklch */ color: oklch(90.7% 0.130 103.0);
Tailwind
colors: {
  custom: {
    50: '#f7eca1',
    500: '#f0e478',
    950: '#000000',
  },
}
SCSS
$custom: #f0e478;
$custom-light: #f7eca1;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e478",
  "rgb": {
    "r": 240,
    "g": 228,
    "b": 120
  },
  "hsl": {
    "h": 54,
    "s": 80,
    "l": 70.588
  },
  "oklch": {
    "l": 0.90664,
    "c": 0.13034,
    "h": 103
  },
  "luminance": 0.75368
}

Semantic roles & 50–950 ramp

primary
#F0E478
secondary
#4250CA
accent
#1EDC09
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#17160F
muted
#858480

Preview Lab

Preview with #F0E478

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

Preview Lab → · Contrast checker → · Palette generator →

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