#F5E79B#F5E79B

#F5E79B is a very light, moderate yellow. Relative luminance 0.789; OKLCH L 92.2% C 0.097 H 99.0°. Best body text is #000000 at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#F5E79B
RGBrgb(245, 231, 155)
HSLhsl(51, 82%, 78%)
HSVhsv(51, 37%, 96%)
CMYKcmyk(0%, 5.7%, 36.7%, 3.9%)
CIE-LABlab(91.20, -5.98, 38.74)
CIE-LCHlch(91.20, 39.20, 98.77°)
OKLaboklab(92.21% -0.0152 0.0955)
OKLCHoklch(92.21% 0.097 99)
XYZxyz(72.1497, 78.9329, 42.4389)
Luminance0.7893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E79B #9BA9F5
analogous
#F5BA9B #F5E79B #D6F59B
triadic
#F5E79B #9BF5E7 #E79BF5
tetradic
#F5E79B #9BF5BA #9BA9F5 #F59BD6
square
#F5E79B #9BF5BA #9BA9F5 #F59BD6
split-complementary
#F5E79B #9BD6F5 #BA9BF5
monochromatic
#EACC2C #EFDA63 #F5E79B #FBF4D3 #FCF8E3

Accessibility & contrast

On white

1.25
#F5E79B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.79
#F5E79B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E79B
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E79B#FFFFFF#000000##000000
##F5E79B1.001.2516.7916.79
#FFFFFF1.251.0021.0021.00
#00000016.7921.001.001.00
##00000016.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5E396
Deuteranopia (green-blind)
#F9E89E
Tritanopia (blue-blind)
#FFDDD4
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f5e79b;
/* rgb */ color: rgb(245, 231, 155);
/* oklch */ color: oklch(92.2% 0.097 99.0);
Tailwind
colors: {
  custom: {
    50: '#f9eeb9',
    500: '#f5e79b',
    950: '#000000',
  },
}
SCSS
$custom: #f5e79b;
$custom-light: #f9eeb9;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e79b",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 155
  },
  "hsl": {
    "h": 50.667,
    "s": 81.818,
    "l": 78.431
  },
  "oklch": {
    "l": 0.92211,
    "c": 0.0967,
    "h": 99
  },
  "luminance": 0.78931
}

Semantic roles & 50–950 ramp

primary
#F5E79B
secondary
#6072D4
accent
#29DE07
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F5E79B

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

Preview Lab → · Contrast checker → · Palette generator →

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