#FCF797#FCF797

#FCF797 is a very light, moderate yellow. Relative luminance 0.895; OKLCH L 95.9% C 0.118 H 105.8°. Best body text is #000000 at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#FCF797
RGBrgb(252, 247, 151)
HSLhsl(57, 94%, 79%)
HSVhsv(57, 40%, 99%)
CMYKcmyk(0%, 2%, 40.1%, 1.2%)
CIE-LABlab(95.77, -11.67, 46.68)
CIE-LCHlch(95.77, 48.12, 104.03°)
OKLaboklab(95.95% -0.0322 0.1135)
OKLCHoklch(95.95% 0.118 105.8)
XYZxyz(78.9929, 89.4532, 42.3772)
Luminance0.8945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF797 #979CFC
analogous
#FCC597 #FCF797 #CFFC97
triadic
#FCF797 #97FCF7 #F797FC
tetradic
#FCF797 #97FCC5 #979CFC #FC97CF
square
#FCF797 #97FCC5 #979CFC #FC97CF
split-complementary
#FCF797 #97CFFC #C597FC
monochromatic
#F9EE20 #FAF25C #FCF797 #FEFCD2 #FEFDE1

Accessibility & contrast

On white

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

On black

18.89
#FCF797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF797
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF797#FFFFFF#000000##000000
##FCF7971.001.1118.8918.89
#FFFFFF1.111.0021.0021.00
#00000018.8921.001.001.00
##00000018.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF090
Deuteranopia (green-blind)
#FFF59B
Tritanopia (blue-blind)
#FFECE0
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fcf797;
/* rgb */ color: rgb(252, 247, 151);
/* oklch */ color: oklch(95.9% 0.118 105.8);
Tailwind
colors: {
  custom: {
    50: '#fff9b7',
    500: '#fcf797',
    950: '#000000',
  },
}
SCSS
$custom: #fcf797;
$custom-light: #fff9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf797",
  "rgb": {
    "r": 252,
    "g": 247,
    "b": 151
  },
  "hsl": {
    "h": 57.03,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.95945,
    "c": 0.11793,
    "h": 105.8
  },
  "luminance": 0.89451
}

Semantic roles & 50–950 ramp

primary
#FCF797
secondary
#5A60DD
accent
#0BE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FCF797

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

Preview Lab → · Contrast checker → · Palette generator →

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