#F0E474#F0E474

#F0E474 is a very light, vivid yellow. Relative luminance 0.753; OKLCH L 90.6% C 0.134 H 103.2°. Best body text is #000000 at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#F0E474
RGBrgb(240, 228, 116)
HSLhsl(54, 81%, 70%)
HSVhsv(54, 52%, 94%)
CMYKcmyk(0%, 5%, 51.7%, 5.9%)
CIE-LABlab(89.52, -10.22, 55.47)
CIE-LCHlch(89.52, 56.40, 100.44°)
OKLaboklab(90.61% -0.0306 0.1306)
OKLCHoklch(90.61% 0.134 103.2)
XYZxyz(66.8329, 75.2752, 27.5287)
Luminance0.7527 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E474 #7480F0
analogous
#F0A674 #F0E474 #BEF074
triadic
#F0E474 #74F0E4 #E474F0
tetradic
#F0E474 #74F0A6 #7480F0 #F074BE
square
#F0E474 #74F0A6 #7480F0 #F074BE
split-complementary
#F0E474 #74BEF0 #A674F0
monochromatic
#D3C117 #EAD93D #F0E474 #F6EFAB #FCF9E2

Accessibility & contrast

On white

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

On black

16.05
#F0E474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E474
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E474#FFFFFF#000000##000000
##F0E4741.001.3116.0516.05
#FFFFFF1.311.0021.0021.00
#00000016.0521.001.001.00
##00000016.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DE6A
Deuteranopia (green-blind)
#F9E479
Tritanopia (blue-blind)
#FFD7CA
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f0e474;
/* rgb */ color: rgb(240, 228, 116);
/* oklch */ color: oklch(90.6% 0.134 103.2);
Tailwind
colors: {
  custom: {
    50: '#f7ec9f',
    500: '#f0e474',
    950: '#000000',
  },
}
SCSS
$custom: #f0e474;
$custom-light: #f7ec9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e474",
  "rgb": {
    "r": 240,
    "g": 228,
    "b": 116
  },
  "hsl": {
    "h": 54.194,
    "s": 80.519,
    "l": 69.804
  },
  "oklch": {
    "l": 0.90614,
    "c": 0.13416,
    "h": 103.2
  },
  "luminance": 0.75273
}

Semantic roles & 50–950 ramp

primary
#F0E474
secondary
#3F4CC9
accent
#1DDD09
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#17160F
muted
#858480

Preview Lab

Preview with #F0E474

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

Preview Lab → · Contrast checker → · Palette generator →

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