#FFF796#FFF796

#FFF796 is a very light, moderate yellow. Relative luminance 0.900; OKLCH L 96.2% C 0.119 H 104.3°. Best body text is #000000 at 19.00:1 contrast (WCAG AA passes).

Color values

HEX#FFF796
RGBrgb(255, 247, 150)
HSLhsl(55, 100%, 79%)
HSVhsv(55, 41%, 100%)
CMYKcmyk(0%, 3.1%, 41.2%, 0%)
CIE-LABlab(95.99, -10.62, 47.50)
CIE-LCHlch(95.99, 48.67, 102.60°)
OKLaboklab(96.17% -0.0294 0.1152)
OKLCHoklch(96.17% 0.119 104.3)
XYZxyz(80.0073, 89.9856, 42.0026)
Luminance0.8998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF796 #969EFF
analogous
#FFC396 #FFF796 #D2FF96
triadic
#FFF796 #96FFF7 #F796FF
tetradic
#FFF796 #96FFC3 #969EFF #FF96D2
square
#FFF796 #96FFC3 #969EFF #FF96D2
split-complementary
#FFF796 #96D2FF #C396FF
monochromatic
#FFEE1C #FFF259 #FFF796 #FFFCD3 #FFFDE0

Accessibility & contrast

On white

1.11
#FFF796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.00
#FFF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF796
19.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF796#FFFFFF#000000##000000
##FFF7961.001.1119.0019.00
#FFFFFF1.111.0021.0021.00
#00000019.0021.001.001.00
##00000019.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF18E
Deuteranopia (green-blind)
#FFF69A
Tritanopia (blue-blind)
#FFEBDF
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fff796;
/* rgb */ color: rgb(255, 247, 150);
/* oklch */ color: oklch(96.2% 0.119 104.3);
Tailwind
colors: {
  custom: {
    50: '#fff9b6',
    500: '#fff796',
    950: '#000000',
  },
}
SCSS
$custom: #fff796;
$custom-light: #fff9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fff796",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 55.429,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.96174,
    "c": 0.1189,
    "h": 104.3
  },
  "luminance": 0.89984
}

Semantic roles & 50–950 ramp

primary
#FFF796
secondary
#5862E1
accent
#11E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFF796

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

Preview Lab → · Contrast checker → · Palette generator →

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