#F5DF78#F5DF78

#F5DF78 is a very light, vivid yellow. Relative luminance 0.735; OKLCH L 90.1% C 0.126 H 97.5°. Best body text is #000000 at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#F5DF78
RGBrgb(245, 223, 120)
HSLhsl(49, 86%, 72%)
HSVhsv(49, 51%, 96%)
CMYKcmyk(0%, 9%, 51%, 3.9%)
CIE-LABlab(88.71, -5.37, 52.73)
CIE-LCHlch(88.71, 53.00, 95.82°)
OKLaboklab(90.08% -0.0165 0.1249)
OKLCHoklch(90.08% 0.126 97.5)
XYZxyz(67.4362, 73.5466, 28.4094)
Luminance0.7354 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DF78 #788EF5
analogous
#F5A178 #F5DF78 #CDF578
triadic
#F5DF78 #78F5DF #DF78F5
tetradic
#F5DF78 #78F5A1 #788EF5 #F578CD
square
#F5DF78 #78F5A1 #788EF5 #F578CD
split-complementary
#F5DF78 #78CDF5 #A178F5
monochromatic
#E2BD11 #F1D13F #F5DF78 #F9EDB1 #FDF8E3

Accessibility & contrast

On white

1.34
#F5DF78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.71
#F5DF78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DF78
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DF78#FFFFFF#000000##000000
##F5DF781.001.3415.7115.71
#FFFFFF1.341.0021.0021.00
#00000015.7121.001.001.00
##00000015.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1DA6F
Deuteranopia (green-blind)
#F7E27C
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f5df78;
/* rgb */ color: rgb(245, 223, 120);
/* oklch */ color: oklch(90.1% 0.126 97.5);
Tailwind
colors: {
  custom: {
    50: '#fbe8a1',
    500: '#f5df78',
    950: '#000000',
  },
}
SCSS
$custom: #f5df78;
$custom-light: #fbe8a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f5df78",
  "rgb": {
    "r": 245,
    "g": 223,
    "b": 120
  },
  "hsl": {
    "h": 49.44,
    "s": 86.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.90083,
    "c": 0.12601,
    "h": 97.5
  },
  "luminance": 0.73544
}

Semantic roles & 50–950 ramp

primary
#F5DF78
secondary
#415AD0
accent
#2AE303
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F5DF78

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

Preview Lab → · Contrast checker → · Palette generator →

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