#FFF7B2#FFF7B2

#FFF7B2 is a very light, moderate yellow. Relative luminance 0.910; OKLCH L 96.6% C 0.088 H 102.3°. Best body text is #000000 at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#FFF7B2
RGBrgb(255, 247, 178)
HSLhsl(54, 100%, 85%)
HSVhsv(54, 30%, 100%)
CMYKcmyk(0%, 3.1%, 30.2%, 0%)
CIE-LABlab(96.41, -7.50, 34.21)
CIE-LCHlch(96.41, 35.02, 102.36°)
OKLaboklab(96.64% -0.0186 0.0855)
OKLCHoklch(96.64% 0.088 102.3)
XYZxyz(82.5373, 90.9976, 55.3272)
Luminance0.9100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF7B2 #B2BAFF
analogous
#FFD0B2 #FFF7B2 #E1FFB2
triadic
#FFF7B2 #B2FFF7 #F7B2FF
tetradic
#FFF7B2 #B2FFD0 #B2BAFF #FFB2E1
square
#FFF7B2 #B2FFD0 #B2BAFF #FFB2E1
split-complementary
#FFF7B2 #B2E1FF #D0B2FF
monochromatic
#FFEA38 #FFF175 #FFF7B2 #FFFCE0 #FFFCE0

Accessibility & contrast

On white

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

On black

19.20
#FFF7B2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF7B2
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF7B2#FFFFFF#000000##000000
##FFF7B21.001.0919.2019.20
#FFFFFF1.091.0021.0021.00
#00000019.2021.001.001.00
##00000019.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF2AD
Deuteranopia (green-blind)
#FFF7B5
Tritanopia (blue-blind)
#FFEEE5
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fff7b2;
/* rgb */ color: rgb(255, 247, 178);
/* oklch */ color: oklch(96.6% 0.088 102.3);
Tailwind
colors: {
  custom: {
    50: '#fff9c9',
    500: '#fff7b2',
    950: '#000000',
  },
}
SCSS
$custom: #fff7b2;
$custom-light: #fff9c9;
$custom-dark: #000000;
JSON
{
  "hex": "#fff7b2",
  "rgb": {
    "r": 255,
    "g": 247,
    "b": 178
  },
  "hsl": {
    "h": 53.766,
    "s": 100,
    "l": 84.902
  },
  "oklch": {
    "l": 0.96642,
    "c": 0.08754,
    "h": 102.3
  },
  "luminance": 0.90996
}

Semantic roles & 50–950 ramp

primary
#FFF7B2
secondary
#707CE6
accent
#18E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181713
muted
#868582

Preview Lab

Preview with #FFF7B2

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

Preview Lab → · Contrast checker → · Palette generator →

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