#FFF8CB#FFF8CB

#FFF8CB is a very light, muted yellow. Relative luminance 0.927; OKLCH L 97.3% C 0.058 H 100.1°. Best body text is #000000 at 19.54:1 contrast (WCAG AA passes).

Color values

HEX#FFF8CB
RGBrgb(255, 248, 203)
HSLhsl(52, 100%, 90%)
HSVhsv(52, 20%, 100%)
CMYKcmyk(0%, 2.7%, 20.4%, 0%)
CIE-LABlab(97.11, -4.71, 22.50)
CIE-LCHlch(97.11, 22.99, 101.82°)
OKLaboklab(97.34% -0.0102 0.0576)
OKLCHoklch(97.34% 0.058 100.1)
XYZxyz(85.5866, 92.7079, 69.8741)
Luminance0.9271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF8CB #CBD2FF
analogous
#FFDECB #FFF8CB #ECFFCB
triadic
#FFF8CB #CBFFF8 #F8CBFF
tetradic
#FFF8CB #CBFFDE #CBD2FF #FFCBEC
square
#FFF8CB #CBFFDE #CBD2FF #FFCBEC
split-complementary
#FFF8CB #CBECFF #DECBFF
monochromatic
#FFE851 #FFF08E #FFF8CB #FFFBE0 #FFFBE0

Accessibility & contrast

On white

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

On black

19.54
#FFF8CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF8CB
19.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF8CB#FFFFFF#000000##000000
##FFF8CB1.001.0719.5419.54
#FFFFFF1.071.0021.0021.00
#00000019.5421.001.001.00
##00000019.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF5C8
Deuteranopia (green-blind)
#FFF8CC
Tritanopia (blue-blind)
#FFF1EC
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fff8cb;
/* rgb */ color: rgb(255, 248, 203);
/* oklch */ color: oklch(97.3% 0.058 100.1);
Tailwind
colors: {
  custom: {
    50: '#fffadb',
    500: '#fff8cb',
    950: '#000000',
  },
}
SCSS
$custom: #fff8cb;
$custom-light: #fffadb;
$custom-dark: #000000;
JSON
{
  "hex": "#fff8cb",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 203
  },
  "hsl": {
    "h": 51.923,
    "s": 100,
    "l": 89.804
  },
  "oklch": {
    "l": 0.97342,
    "c": 0.05847,
    "h": 100.1
  },
  "luminance": 0.92707
}

Semantic roles & 50–950 ramp

primary
#FFF8CB
secondary
#8592E9
accent
#1FE600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181715
muted
#868584

Preview Lab

Preview with #FFF8CB

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

Preview Lab → · Contrast checker → · Palette generator →

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