#FFF7BF#FFF7BF

#FFF7BF is a very light, moderate yellow. Relative luminance 0.915; OKLCH L 96.9% C 0.072 H 100.8°. Best body text is #000000 at 19.31:1 contrast (WCAG AA passes).

Color values

HEX#FFF7BF
RGBrgb(255, 247, 191)
HSLhsl(53, 100%, 87%)
HSVhsv(53, 25%, 100%)
CMYKcmyk(0%, 3.1%, 25.1%, 0%)
CIE-LABlab(96.63, -5.85, 27.95)
CIE-LCHlch(96.63, 28.56, 101.81°)
OKLaboklab(96.89% -0.0135 0.0708)
OKLCHoklch(96.89% 0.072 100.8)
XYZxyz(83.9049, 91.5447, 62.5300)
Luminance0.9154 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF7BF #BFC7FF
analogous
#FFD7BF #FFF7BF #E7FFBF
triadic
#FFF7BF #BFFFF7 #F7BFFF
tetradic
#FFF7BF #BFFFD7 #BFC7FF #FFBFE7
square
#FFF7BF #BFFFD7 #BFC7FF #FFBFE7
split-complementary
#FFF7BF #BFE7FF #D7BFFF
monochromatic
#FFE845 #FFEF82 #FFF7BF #FFFBE0 #FFFBE0

Accessibility & contrast

On white

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

On black

19.31
#FFF7BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF7BF
19.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF7BF#FFFFFF#000000##000000
##FFF7BF1.001.0919.3119.31
#FFFFFF1.091.0021.0021.00
#00000019.3121.001.001.00
##00000019.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3BB
Deuteranopia (green-blind)
#FFF7C1
Tritanopia (blue-blind)
#FFEFE8
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fff7bf;
/* rgb */ color: rgb(255, 247, 191);
/* oklch */ color: oklch(96.9% 0.072 100.8);
Tailwind
colors: {
  custom: {
    50: '#fff9d2',
    500: '#fff7bf',
    950: '#000000',
  },
}
SCSS
$custom: #fff7bf;
$custom-light: #fff9d2;
$custom-dark: #000000;
JSON
{
  "hex": "#fff7bf",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 191
  },
  "hsl": {
    "h": 52.5,
    "s": 100,
    "l": 87.451
  },
  "oklch": {
    "l": 0.96893,
    "c": 0.07205,
    "h": 100.8
  },
  "luminance": 0.91543
}

Semantic roles & 50–950 ramp

primary
#FFF7BF
secondary
#7B88E8
accent
#1DE600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FFF7BF

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

Preview Lab → · Contrast checker → · Palette generator →

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