#FFF7BC#FFF7BC

#FFF7BC is a very light, moderate yellow. Relative luminance 0.914; OKLCH L 96.8% C 0.076 H 101.2°. Best body text is #000000 at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#FFF7BC
RGBrgb(255, 247, 188)
HSLhsl(53, 100%, 87%)
HSVhsv(53, 26%, 100%)
CMYKcmyk(0%, 3.1%, 26.3%, 0%)
CIE-LABlab(96.58, -6.24, 29.40)
CIE-LCHlch(96.58, 30.06, 101.98°)
OKLaboklab(96.83% -0.0147 0.0742)
OKLCHoklch(96.83% 0.076 101.2)
XYZxyz(83.5781, 91.4140, 60.8091)
Luminance0.9141 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF7BC #BCC4FF
analogous
#FFD6BC #FFF7BC #E6FFBC
triadic
#FFF7BC #BCFFF7 #F7BCFF
tetradic
#FFF7BC #BCFFD6 #BCC4FF #FFBCE6
square
#FFF7BC #BCFFD6 #BCC4FF #FFBCE6
split-complementary
#FFF7BC #BCE6FF #D6BCFF
monochromatic
#FFE842 #FFF07F #FFF7BC #FFFBE0 #FFFBE0

Accessibility & contrast

On white

1.09
#FFF7BC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.28
#FFF7BC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF7BC
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF7BC#FFFFFF#000000##000000
##FFF7BC1.001.0919.2819.28
#FFFFFF1.091.0021.0021.00
#00000019.2821.001.001.00
##00000019.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3B8
Deuteranopia (green-blind)
#FFF7BE
Tritanopia (blue-blind)
#FFEFE7
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fff7bc;
/* rgb */ color: rgb(255, 247, 188);
/* oklch */ color: oklch(96.8% 0.076 101.2);
Tailwind
colors: {
  custom: {
    50: '#fff9d0',
    500: '#fff7bc',
    950: '#000000',
  },
}
SCSS
$custom: #fff7bc;
$custom-light: #fff9d0;
$custom-dark: #000000;
JSON
{
  "hex": "#fff7bc",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 188
  },
  "hsl": {
    "h": 52.836,
    "s": 100,
    "l": 86.863
  },
  "oklch": {
    "l": 0.96833,
    "c": 0.07567,
    "h": 101.2
  },
  "luminance": 0.91412
}

Semantic roles & 50–950 ramp

primary
#FFF7BC
secondary
#7885E7
accent
#1BE600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FFF7BC

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

Preview Lab → · Contrast checker → · Palette generator →

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