#FCF997#FCF997

#FCF997 is a very light, vivid yellow. Relative luminance 0.907; OKLCH L 96.4% C 0.120 H 106.9°. Best body text is #000000 at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#FCF997
RGBrgb(252, 249, 151)
HSLhsl(58, 94%, 79%)
HSVhsv(58, 40%, 99%)
CMYKcmyk(0%, 1.2%, 40.1%, 1.2%)
CIE-LABlab(96.28, -12.65, 47.33)
CIE-LCHlch(96.28, 48.99, 104.96°)
OKLaboklab(96.35% -0.035 0.1149)
OKLCHoklch(96.35% 0.12 106.9)
XYZxyz(79.6078, 90.6830, 42.5821)
Luminance0.9068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF997 #979AFC
analogous
#FCC797 #FCF997 #CDFC97
triadic
#FCF997 #97FCF9 #F997FC
tetradic
#FCF997 #97FCC7 #979AFC #FC97CD
square
#FCF997 #97FCC7 #979AFC #FC97CD
split-complementary
#FCF997 #97CDFC #C797FC
monochromatic
#F9F220 #FAF65C #FCF997 #FEFCD2 #FEFDE1

Accessibility & contrast

On white

1.10
#FCF997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.14
#FCF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF997
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF997#FFFFFF#000000##000000
##FCF9971.001.1019.1419.14
#FFFFFF1.101.0021.0021.00
#00000019.1421.001.001.00
##00000019.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF69B
Tritanopia (blue-blind)
#FFEEE1
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fcf997;
/* rgb */ color: rgb(252, 249, 151);
/* oklch */ color: oklch(96.4% 0.120 106.9);
Tailwind
colors: {
  custom: {
    50: '#fffbb7',
    500: '#fcf997',
    950: '#000000',
  },
}
SCSS
$custom: #fcf997;
$custom-light: #fffbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf997",
  "rgb": {
    "r": 252,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 58.218,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.9635,
    "c": 0.12011,
    "h": 106.9
  },
  "luminance": 0.90681
}

Semantic roles & 50–950 ramp

primary
#FCF997
secondary
#5A5EDD
accent
#07E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FCF997

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

Preview Lab → · Contrast checker → · Palette generator →

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