#FCF796#FCF796

#FCF796 is a very light, moderate yellow. Relative luminance 0.894; OKLCH L 95.9% C 0.119 H 105.9°. Best body text is #000000 at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#FCF796
RGBrgb(252, 247, 150)
HSLhsl(57, 94%, 79%)
HSVhsv(57, 40%, 99%)
CMYKcmyk(0%, 2%, 40.5%, 1.2%)
CIE-LABlab(95.76, -11.77, 47.15)
CIE-LCHlch(95.76, 48.60, 104.02°)
OKLaboklab(95.93% -0.0325 0.1145)
OKLCHoklch(95.93% 0.119 105.9)
XYZxyz(78.9120, 89.4209, 41.9513)
Luminance0.8942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF796 #969BFC
analogous
#FCC496 #FCF796 #CEFC96
triadic
#FCF796 #96FCF7 #F796FC
tetradic
#FCF796 #96FCC4 #969BFC #FC96CE
square
#FCF796 #96FCC4 #969BFC #FC96CE
split-complementary
#FCF796 #96CEFC #C496FC
monochromatic
#F9EE1F #FAF25B #FCF796 #FEFCD2 #FEFDE1

Accessibility & contrast

On white

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

On black

18.88
#FCF796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF796
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF796#FFFFFF#000000##000000
##FCF7961.001.1118.8818.88
#FFFFFF1.111.0021.0021.00
#00000018.8821.001.001.00
##00000018.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fcf796;
/* rgb */ color: rgb(252, 247, 150);
/* oklch */ color: oklch(95.9% 0.119 105.9);
Tailwind
colors: {
  custom: {
    50: '#fff9b6',
    500: '#fcf796',
    950: '#000000',
  },
}
SCSS
$custom: #fcf796;
$custom-light: #fff9b6;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf796",
  "rgb": {
    "r": 252,
    "g": 247,
    "b": 150
  },
  "hsl": {
    "h": 57.059,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.9593,
    "c": 0.11899,
    "h": 105.9
  },
  "luminance": 0.89419
}

Semantic roles & 50–950 ramp

primary
#FCF796
secondary
#5960DD
accent
#0BE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FCF796

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

Preview Lab → · Contrast checker → · Palette generator →

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