#FFF8BB#FFF8BB

#FFF8BB is a very light, moderate yellow. Relative luminance 0.920; OKLCH L 97.0% C 0.078 H 102.2°. Best body text is #000000 at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#FFF8BB
RGBrgb(255, 248, 187)
HSLhsl(54, 100%, 87%)
HSVhsv(54, 27%, 100%)
CMYKcmyk(0%, 2.7%, 26.7%, 0%)
CIE-LABlab(96.81, -6.87, 30.22)
CIE-LCHlch(96.81, 30.99, 102.80°)
OKLaboklab(97.01% -0.0165 0.0762)
OKLCHoklch(97.01% 0.078 102.2)
XYZxyz(83.7773, 91.9842, 60.3455)
Luminance0.9198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF8BB #BBC2FF
analogous
#FFD6BB #FFF8BB #E4FFBB
triadic
#FFF8BB #BBFFF8 #F8BBFF
tetradic
#FFF8BB #BBFFD6 #BBC2FF #FFBBE4
square
#FFF8BB #BBFFD6 #BBC2FF #FFBBE4
split-complementary
#FFF8BB #BBE4FF #D6BBFF
monochromatic
#FFEB41 #FFF27E #FFF8BB #FFFCE0 #FFFCE0

Accessibility & contrast

On white

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

On black

19.40
#FFF8BB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF8BB
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF8BB#FFFFFF#000000##000000
##FFF8BB1.001.0819.4019.40
#FFFFFF1.081.0021.0021.00
#00000019.4021.001.001.00
##00000019.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4B7
Deuteranopia (green-blind)
#FFF8BD
Tritanopia (blue-blind)
#FFF0E8
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fff8bb;
/* rgb */ color: rgb(255, 248, 187);
/* oklch */ color: oklch(97.0% 0.078 102.2);
Tailwind
colors: {
  custom: {
    50: '#fffacf',
    500: '#fff8bb',
    950: '#000000',
  },
}
SCSS
$custom: #fff8bb;
$custom-light: #fffacf;
$custom-dark: #000000;
JSON
{
  "hex": "#fff8bb",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 187
  },
  "hsl": {
    "h": 53.824,
    "s": 100,
    "l": 86.667
  },
  "oklch": {
    "l": 0.97012,
    "c": 0.07796,
    "h": 102.2
  },
  "luminance": 0.91983
}

Semantic roles & 50–950 ramp

primary
#FFF8BB
secondary
#7783E7
accent
#18E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FFF8BB

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

Preview Lab → · Contrast checker → · Palette generator →

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