#F2F474#F2F474

#F2F474 is a very light, vivid yellow. Relative luminance 0.848; OKLCH L 94.1% C 0.150 H 109.8°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#F2F474
RGBrgb(242, 244, 116)
HSLhsl(61, 85%, 71%)
HSVhsv(61, 52%, 96%)
CMYKcmyk(0.8%, 0%, 52.5%, 4.3%)
CIE-LABlab(93.81, -17.29, 60.51)
CIE-LCHlch(93.81, 62.93, 105.94°)
OKLaboklab(94.07% -0.0509 0.1415)
OKLCHoklch(94.07% 0.15 109.8)
XYZxyz(72.1228, 84.8413, 29.0964)
Luminance0.8484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F474 #7674F4
analogous
#F4B674 #F2F474 #B2F474
triadic
#F2F474 #74F2F4 #F474F2
tetradic
#F2F474 #74F4B6 #7674F4 #F474B2
square
#F2F474 #74F4B6 #7674F4 #F474B2
split-complementary
#F2F474 #74B2F4 #B674F4
monochromatic
#D9DC11 #EDF03B #F2F474 #F7F8AD #FCFDE3

Accessibility & contrast

On white

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

On black

17.97
#F2F474 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F474
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F474#FFFFFF#000000##000000
##F2F4741.001.1717.9717.97
#FFFFFF1.171.0021.0021.00
#00000017.9721.001.001.00
##00000017.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f474;
/* rgb */ color: rgb(242, 244, 116);
/* oklch */ color: oklch(94.1% 0.150 109.8);
Tailwind
colors: {
  custom: {
    50: '#f9f79f',
    500: '#f2f474',
    950: '#000000',
  },
}
SCSS
$custom: #f2f474;
$custom-light: #f9f79f;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f474",
  "rgb": {
    "r": 242,
    "g": 244,
    "b": 116
  },
  "hsl": {
    "h": 60.938,
    "s": 85.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94068,
    "c": 0.15039,
    "h": 109.8
  },
  "luminance": 0.8484
}

Semantic roles & 50–950 ramp

primary
#F2F474
secondary
#403ECE
accent
#04E207
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F474

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

Preview Lab → · Contrast checker → · Palette generator →

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