#F2F478#F2F478

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

Color values

HEX#F2F478
RGBrgb(242, 244, 120)
HSLhsl(61, 85%, 71%)
HSVhsv(61, 51%, 96%)
CMYKcmyk(0.8%, 0%, 50.8%, 4.3%)
CIE-LABlab(93.86, -16.96, 58.76)
CIE-LCHlch(93.86, 61.16, 106.10°)
OKLaboklab(94.11% -0.0496 0.1381)
OKLCHoklch(94.11% 0.147 109.8)
XYZxyz(72.3605, 84.9364, 30.3482)
Luminance0.8494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F478 #7A78F4
analogous
#F4B878 #F2F478 #B4F478
triadic
#F2F478 #78F2F4 #F478F2
tetradic
#F2F478 #78F4B8 #7A78F4 #F478B4
square
#F2F478 #78F4B8 #7A78F4 #F478B4
split-complementary
#F2F478 #78B4F4 #B878F4
monochromatic
#DCDF12 #EDEF3F #F2F478 #F7F9B1 #FCFDE3

Accessibility & contrast

On white

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

On black

17.99
#F2F478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F478
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F478#FFFFFF#000000##000000
##F2F4781.001.1717.9917.99
#FFFFFF1.171.0021.0021.00
#00000017.9921.001.001.00
##00000017.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB6C
Deuteranopia (green-blind)
#FFEF7E
Tritanopia (blue-blind)
#FFE7D8
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f2f478;
/* rgb */ color: rgb(242, 244, 120);
/* oklch */ color: oklch(94.1% 0.147 109.8);
Tailwind
colors: {
  custom: {
    50: '#f9f7a2',
    500: '#f2f478',
    950: '#000000',
  },
}
SCSS
$custom: #f2f478;
$custom-light: #f9f7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f478",
  "rgb": {
    "r": 242,
    "g": 244,
    "b": 120
  },
  "hsl": {
    "h": 60.968,
    "s": 84.932,
    "l": 71.373
  },
  "oklch": {
    "l": 0.94114,
    "c": 0.14674,
    "h": 109.8
  },
  "luminance": 0.84935
}

Semantic roles & 50–950 ramp

primary
#F2F478
secondary
#4441CF
accent
#04E108
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F478

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

Preview Lab → · Contrast checker → · Palette generator →

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