#F5E796#F5E796

#F5E796 is a very light, moderate yellow. Relative luminance 0.788; OKLCH L 92.1% C 0.102 H 99.6°. Best body text is #000000 at 16.75:1 contrast (WCAG AA passes).

Color values

HEX#F5E796
RGBrgb(245, 231, 150)
HSLhsl(51, 83%, 77%)
HSVhsv(51, 39%, 96%)
CMYKcmyk(0%, 5.7%, 38.8%, 3.9%)
CIE-LABlab(91.13, -6.52, 41.14)
CIE-LCHlch(91.13, 41.65, 99.01°)
OKLaboklab(92.13% -0.0171 0.1008)
OKLCHoklch(92.13% 0.102 99.6)
XYZxyz(71.7385, 78.7684, 40.2731)
Luminance0.7877 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E796 #96A4F5
analogous
#F5B896 #F5E796 #D3F596
triadic
#F5E796 #96F5E7 #E796F5
tetradic
#F5E796 #96F5B8 #96A4F5 #F596D3
square
#F5E796 #96F5B8 #96A4F5 #F596D3
split-complementary
#F5E796 #96D3F5 #B896F5
monochromatic
#EACD26 #F0DA5E #F5E796 #FAF4CE #FCF9E3

Accessibility & contrast

On white

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

On black

16.75
#F5E796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E796
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E796#FFFFFF#000000##000000
##F5E7961.001.2516.7516.75
#FFFFFF1.251.0021.0021.00
#00000016.7521.001.001.00
##00000016.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F6E290
Deuteranopia (green-blind)
#FAE899
Tritanopia (blue-blind)
#FFDCD3
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f5e796;
/* rgb */ color: rgb(245, 231, 150);
/* oklch */ color: oklch(92.1% 0.102 99.6);
Tailwind
colors: {
  custom: {
    50: '#faeeb6',
    500: '#f5e796',
    950: '#000000',
  },
}
SCSS
$custom: #f5e796;
$custom-light: #faeeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e796",
  "rgb": {
    "r": 245,
    "g": 231,
    "b": 150
  },
  "hsl": {
    "h": 51.158,
    "s": 82.609,
    "l": 77.451
  },
  "oklch": {
    "l": 0.92127,
    "c": 0.10227,
    "h": 99.6
  },
  "luminance": 0.78766
}

Semantic roles & 50–950 ramp

primary
#F5E796
secondary
#5C6DD3
accent
#26DF06
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F5E796

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

Preview Lab → · Contrast checker → · Palette generator →

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