#FFFC97#FFFC97

#FFFC97 is a very light, vivid yellow. Relative luminance 0.931; OKLCH L 97.2% C 0.123 H 107.0°. Best body text is #000000 at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#FFFC97
RGBrgb(255, 252, 151)
HSLhsl(58, 100%, 80%)
HSVhsv(58, 41%, 100%)
CMYKcmyk(0%, 1.2%, 40.8%, 0%)
CIE-LABlab(97.28, -12.97, 48.63)
CIE-LCHlch(97.28, 50.33, 104.93°)
OKLaboklab(97.2% -0.036 0.1178)
OKLCHoklch(97.2% 0.123 107)
XYZxyz(81.6377, 93.1170, 42.9450)
Luminance0.9312 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFC97 #979AFF
analogous
#FFC897 #FFFC97 #CEFF97
triadic
#FFFC97 #97FFFC #FC97FF
tetradic
#FFFC97 #97FFC8 #979AFF #FF97CE
square
#FFFC97 #97FFC8 #979AFF #FF97CE
split-complementary
#FFFC97 #97CEFF #C897FF
monochromatic
#FFF81D #FFFA5A #FFFC97 #FFFED4 #FFFEE0

Accessibility & contrast

On white

1.07
#FFFC97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.62
#FFFC97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFC97
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFC97#FFFFFF#000000##000000
##FFFC971.001.0719.6219.62
#FFFFFF1.071.0021.0021.00
#00000019.6221.001.001.00
##00000019.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF58F
Deuteranopia (green-blind)
#FFF99B
Tritanopia (blue-blind)
#FFF0E3
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fffc97;
/* rgb */ color: rgb(255, 252, 151);
/* oklch */ color: oklch(97.2% 0.123 107.0);
Tailwind
colors: {
  custom: {
    50: '#fffdb7',
    500: '#fffc97',
    950: '#000000',
  },
}
SCSS
$custom: #fffc97;
$custom-light: #fffdb7;
$custom-dark: #000000;
JSON
{
  "hex": "#fffc97",
  "rgb": {
    "r": 255,
    "g": 252,
    "b": 151
  },
  "hsl": {
    "h": 58.269,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.97198,
    "c": 0.12322,
    "h": 107
  },
  "luminance": 0.93115
}

Semantic roles & 50–950 ramp

primary
#FFFC97
secondary
#595DE2
accent
#07E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFFC97

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

Preview Lab → · Contrast checker → · Palette generator →

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