#FCF798#FCF798

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

Color values

HEX#FCF798
RGBrgb(252, 247, 152)
HSLhsl(57, 94%, 79%)
HSVhsv(57, 40%, 99%)
CMYKcmyk(0%, 2%, 39.7%, 1.2%)
CIE-LABlab(95.78, -11.57, 46.21)
CIE-LCHlch(95.78, 47.64, 104.05°)
OKLaboklab(95.96% -0.0318 0.1125)
OKLCHoklch(95.96% 0.117 105.8)
XYZxyz(79.0744, 89.4858, 42.8067)
Luminance0.8948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF798 #989DFC
analogous
#FCC598 #FCF798 #CFFC98
triadic
#FCF798 #98FCF7 #F798FC
tetradic
#FCF798 #98FCC5 #989DFC #FC98CF
square
#FCF798 #98FCC5 #989DFC #FC98CF
split-complementary
#FCF798 #98CFFC #C598FC
monochromatic
#F9EE21 #FAF25D #FCF798 #FEFCD3 #FEFDE1

Accessibility & contrast

On white

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

On black

18.90
#FCF798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF798
18.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF798#FFFFFF#000000##000000
##FCF7981.001.1118.9018.90
#FFFFFF1.111.0021.0021.00
#00000018.9021.001.001.00
##00000018.9021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fcf798;
/* rgb */ color: rgb(252, 247, 152);
/* oklch */ color: oklch(96.0% 0.117 105.8);
Tailwind
colors: {
  custom: {
    50: '#fff9b7',
    500: '#fcf798',
    950: '#000000',
  },
}
SCSS
$custom: #fcf798;
$custom-light: #fff9b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf798",
  "rgb": {
    "r": 252,
    "g": 247,
    "b": 152
  },
  "hsl": {
    "h": 57,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.95961,
    "c": 0.11686,
    "h": 105.8
  },
  "luminance": 0.89484
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FCF798

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

Preview Lab → · Contrast checker → · Palette generator →

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