#F5F478#F5F478

#F5F478 is a very light, vivid yellow. Relative luminance 0.855; OKLCH L 94.4% C 0.146 H 108.5°. Best body text is #000000 at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#F5F478
RGBrgb(245, 244, 120)
HSLhsl(60, 86%, 72%)
HSVhsv(60, 51%, 96%)
CMYKcmyk(0%, 0.4%, 51%, 3.9%)
CIE-LABlab(94.09, -15.78, 59.09)
CIE-LCHlch(94.09, 61.16, 104.95°)
OKLaboklab(94.35% -0.0464 0.1388)
OKLCHoklch(94.35% 0.146 108.5)
XYZxyz(73.3989, 85.4718, 30.3969)
Luminance0.8547 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F478 #7879F5
analogous
#F5B678 #F5F478 #B8F578
triadic
#F5F478 #78F5F4 #F478F5
tetradic
#F5F478 #78F5B6 #7879F5 #F578B8
square
#F5F478 #78F5B6 #7879F5 #F578B8
split-complementary
#F5F478 #78B8F5 #B678F5
monochromatic
#E2E011 #F1EF3F #F5F478 #F9F9B1 #FDFDE3

Accessibility & contrast

On white

1.16
#F5F478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.09
#F5F478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F478
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F478#FFFFFF#000000##000000
##F5F4781.001.1618.0918.09
#FFFFFF1.161.0021.0021.00
#00000018.0921.001.001.00
##00000018.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5f478;
/* rgb */ color: rgb(245, 244, 120);
/* oklch */ color: oklch(94.4% 0.146 108.5);
Tailwind
colors: {
  custom: {
    50: '#fbf7a2',
    500: '#f5f478',
    950: '#000000',
  },
}
SCSS
$custom: #f5f478;
$custom-light: #fbf7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f478",
  "rgb": {
    "r": 245,
    "g": 244,
    "b": 120
  },
  "hsl": {
    "h": 59.52,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.94354,
    "c": 0.14632,
    "h": 108.5
  },
  "luminance": 0.8547
}

Semantic roles & 50–950 ramp

primary
#F5F478
secondary
#4142D0
accent
#05E303
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F5F478

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

Preview Lab → · Contrast checker → · Palette generator →

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