#FFF7CB#FFF7CB

#FFF7CB is a very light, muted yellow. Relative luminance 0.921; OKLCH L 97.1% C 0.057 H 98.8°. Best body text is #000000 at 19.42:1 contrast (WCAG AA passes).

Color values

HEX#FFF7CB
RGBrgb(255, 247, 203)
HSLhsl(51, 100%, 90%)
HSVhsv(51, 20%, 100%)
CMYKcmyk(0%, 3.1%, 20.4%, 0%)
CIE-LABlab(96.86, -4.21, 22.16)
CIE-LCHlch(96.86, 22.55, 100.76°)
OKLaboklab(97.15% -0.0088 0.0567)
OKLCHoklch(97.15% 0.057 98.8)
XYZxyz(85.2799, 92.0947, 69.7719)
Luminance0.9209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF7CB #CBD3FF
analogous
#FFDDCB #FFF7CB #EDFFCB
triadic
#FFF7CB #CBFFF7 #F7CBFF
tetradic
#FFF7CB #CBFFDD #CBD3FF #FFCBED
square
#FFF7CB #CBFFDD #CBD3FF #FFCBED
split-complementary
#FFF7CB #CBEDFF #DDCBFF
monochromatic
#FFE451 #FFEE8E #FFF7CB #FFFAE0 #FFFAE0

Accessibility & contrast

On white

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

On black

19.42
#FFF7CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF7CB
19.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF7CB#FFFFFF#000000##000000
##FFF7CB1.001.0819.4219.42
#FFFFFF1.081.0021.0021.00
#00000019.4221.001.001.00
##00000019.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fff7cb;
/* rgb */ color: rgb(255, 247, 203);
/* oklch */ color: oklch(97.1% 0.057 98.8);
Tailwind
colors: {
  custom: {
    50: '#fff9db',
    500: '#fff7cb',
    950: '#000000',
  },
}
SCSS
$custom: #fff7cb;
$custom-light: #fff9db;
$custom-dark: #000000;
JSON
{
  "hex": "#fff7cb",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 203
  },
  "hsl": {
    "h": 50.769,
    "s": 100,
    "l": 89.804
  },
  "oklch": {
    "l": 0.97145,
    "c": 0.05739,
    "h": 98.8
  },
  "luminance": 0.92093
}

Semantic roles & 50–950 ramp

primary
#FFF7CB
secondary
#8594E9
accent
#23E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181715
muted
#868584

Preview Lab

Preview with #FFF7CB

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

Preview Lab → · Contrast checker → · Palette generator →

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