#FFF7CC#FFF7CC

#FFF7CC is a very light, muted yellow. Relative luminance 0.921; OKLCH L 97.2% C 0.056 H 98.6°. Best body text is #000000 at 19.43:1 contrast (WCAG AA passes).

Color values

HEX#FFF7CC
RGBrgb(255, 247, 204)
HSLhsl(51, 100%, 90%)
HSVhsv(51, 20%, 100%)
CMYKcmyk(0%, 3.1%, 20%, 0%)
CIE-LABlab(96.88, -4.07, 21.67)
CIE-LCHlch(96.88, 22.05, 100.63°)
OKLaboklab(97.17% -0.0084 0.0555)
OKLCHoklch(97.17% 0.056 98.6)
XYZxyz(85.3995, 92.1425, 70.4015)
Luminance0.9214 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF7CC #CCD4FF
analogous
#FFDDCC #FFF7CC #EEFFCC
triadic
#FFF7CC #CCFFF7 #F7CCFF
tetradic
#FFF7CC #CCFFDD #CCD4FF #FFCCEE
square
#FFF7CC #CCFFDD #CCD4FF #FFCCEE
split-complementary
#FFF7CC #CCEEFF #DDCCFF
monochromatic
#FFE452 #FFED8F #FFF7CC #FFFAE0 #FFFAE0

Accessibility & contrast

On white

1.08
#FFF7CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.43
#FFF7CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF7CC
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF7CC#FFFFFF#000000##000000
##FFF7CC1.001.0819.4319.43
#FFFFFF1.081.0021.0021.00
#00000019.4321.001.001.00
##00000019.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4C9
Deuteranopia (green-blind)
#FFF7CD
Tritanopia (blue-blind)
#FFF1EB
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fff7cc;
/* rgb */ color: rgb(255, 247, 204);
/* oklch */ color: oklch(97.2% 0.056 98.6);
Tailwind
colors: {
  custom: {
    50: '#fff9db',
    500: '#fff7cc',
    950: '#000000',
  },
}
SCSS
$custom: #fff7cc;
$custom-light: #fff9db;
$custom-dark: #000000;
JSON
{
  "hex": "#fff7cc",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 204
  },
  "hsl": {
    "h": 50.588,
    "s": 100,
    "l": 90
  },
  "oklch": {
    "l": 0.97167,
    "c": 0.05615,
    "h": 98.6
  },
  "luminance": 0.92141
}

Semantic roles & 50–950 ramp

primary
#FFF7CC
secondary
#8695EA
accent
#24E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181715
muted
#868584

Preview Lab

Preview with #FFF7CC

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

Preview Lab → · Contrast checker → · Palette generator →

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