#F0F474#F0F474

#F0F474 is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 93.9% C 0.151 H 110.6°. Best body text is #000000 at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#F0F474
RGBrgb(240, 244, 116)
HSLhsl(62, 85%, 71%)
HSVhsv(62, 52%, 96%)
CMYKcmyk(1.6%, 0%, 52.5%, 4.3%)
CIE-LABlab(93.66, -18.07, 60.30)
CIE-LCHlch(93.66, 62.95, 106.69°)
OKLaboklab(93.91% -0.053 0.1411)
OKLCHoklch(93.91% 0.151 110.6)
XYZxyz(71.4399, 84.4892, 29.0643)
Luminance0.8449 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F474 #7874F4
analogous
#F4B874 #F0F474 #B0F474
triadic
#F0F474 #74F0F4 #F474F0
tetradic
#F0F474 #74F4B8 #7874F4 #F474B0
square
#F0F474 #74F4B8 #7874F4 #F474B0
split-complementary
#F0F474 #74B0F4 #B874F4
monochromatic
#D6DC11 #EAF03B #F0F474 #F6F8AD #FCFDE3

Accessibility & contrast

On white

1.17
#F0F474 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.90
#F0F474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F474
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F474#FFFFFF#000000##000000
##F0F4741.001.1717.9017.90
#FFFFFF1.171.0021.0021.00
#00000017.9021.001.001.00
##00000017.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB67
Deuteranopia (green-blind)
#FFEF7B
Tritanopia (blue-blind)
#FEE7D7
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f0f474;
/* rgb */ color: rgb(240, 244, 116);
/* oklch */ color: oklch(93.9% 0.151 110.6);
Tailwind
colors: {
  custom: {
    50: '#f7f79f',
    500: '#f0f474',
    950: '#000000',
  },
}
SCSS
$custom: #f0f474;
$custom-light: #f7f79f;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f474",
  "rgb": {
    "r": 240,
    "g": 244,
    "b": 116
  },
  "hsl": {
    "h": 61.875,
    "s": 85.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.9391,
    "c": 0.15072,
    "h": 110.6
  },
  "luminance": 0.84488
}

Semantic roles & 50–950 ramp

primary
#F0F474
secondary
#423ECE
accent
#04E20B
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17170F
muted
#858580

Preview Lab

Preview with #F0F474

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

Preview Lab → · Contrast checker → · Palette generator →

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