#F5E478#F5E478

#F5E478 is a very light, vivid yellow. Relative luminance 0.763; OKLCH L 91.1% C 0.130 H 100.5°. Best body text is #000000 at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#F5E478
RGBrgb(245, 228, 120)
HSLhsl(52, 86%, 72%)
HSVhsv(52, 51%, 96%)
CMYKcmyk(0%, 6.9%, 51%, 3.9%)
CIE-LABlab(89.98, -7.88, 54.25)
CIE-LCHlch(89.98, 54.82, 98.27°)
OKLaboklab(91.09% -0.0238 0.1282)
OKLCHoklch(91.09% 0.13 100.5)
XYZxyz(68.7919, 76.2578, 28.8612)
Luminance0.7625 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E478 #7889F5
analogous
#F5A678 #F5E478 #C8F578
triadic
#F5E478 #78F5E4 #E478F5
tetradic
#F5E478 #78F5A6 #7889F5 #F578C8
square
#F5E478 #78F5A6 #7889F5 #F578C8
split-complementary
#F5E478 #78C8F5 #A678F5
monochromatic
#E2C511 #F1D93F #F5E478 #F9EFB1 #FDF9E3

Accessibility & contrast

On white

1.29
#F5E478 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.25
#F5E478 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E478
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E478#FFFFFF#000000##000000
##F5E4781.001.2916.2516.25
#FFFFFF1.291.0021.0021.00
#00000016.2521.001.001.00
##00000016.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5DE6E
Deuteranopia (green-blind)
#FAE57D
Tritanopia (blue-blind)
#FFD7CB
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #f5e478;
/* rgb */ color: rgb(245, 228, 120);
/* oklch */ color: oklch(91.1% 0.130 100.5);
Tailwind
colors: {
  custom: {
    50: '#fbeca1',
    500: '#f5e478',
    950: '#000000',
  },
}
SCSS
$custom: #f5e478;
$custom-light: #fbeca1;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e478",
  "rgb": {
    "r": 245,
    "g": 228,
    "b": 120
  },
  "hsl": {
    "h": 51.84,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.9109,
    "c": 0.13042,
    "h": 100.5
  },
  "luminance": 0.76255
}

Semantic roles & 50–950 ramp

primary
#F5E478
secondary
#4155D0
accent
#21E303
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F5E478

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

Preview Lab → · Contrast checker → · Palette generator →

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