#FFF8A7#FFF8A7

#FFF8A7 is a very light, moderate yellow. Relative luminance 0.912; OKLCH L 96.6% C 0.101 H 103.9°. Best body text is #000000 at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#FFF8A7
RGBrgb(255, 248, 167)
HSLhsl(55, 100%, 83%)
HSVhsv(55, 35%, 100%)
CMYKcmyk(0%, 2.7%, 34.5%, 0%)
CIE-LABlab(96.49, -9.29, 39.80)
CIE-LCHlch(96.49, 40.87, 103.14°)
OKLaboklab(96.65% -0.0243 0.0983)
OKLCHoklch(96.65% 0.101 103.9)
XYZxyz(81.7834, 91.1867, 49.8443)
Luminance0.9119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF8A7 #A7AEFF
analogous
#FFCCA7 #FFF8A7 #DAFFA7
triadic
#FFF8A7 #A7FFF8 #F8A7FF
tetradic
#FFF8A7 #A7FFCC #A7AEFF #FFA7DA
square
#FFF8A7 #A7FFCC #A7AEFF #FFA7DA
split-complementary
#FFF8A7 #A7DAFF #CCA7FF
monochromatic
#FFEE2D #FFF36A #FFF8A7 #FFFDE0 #FFFDE0

Accessibility & contrast

On white

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

On black

19.24
#FFF8A7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF8A7
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF8A7#FFFFFF#000000##000000
##FFF8A71.001.0919.2419.24
#FFFFFF1.091.0021.0021.00
#00000019.2421.001.001.00
##00000019.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF2A1
Deuteranopia (green-blind)
#FFF7AA
Tritanopia (blue-blind)
#FFEEE3
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fff8a7;
/* rgb */ color: rgb(255, 248, 167);
/* oklch */ color: oklch(96.6% 0.101 103.9);
Tailwind
colors: {
  custom: {
    50: '#fffac2',
    500: '#fff8a7',
    950: '#000000',
  },
}
SCSS
$custom: #fff8a7;
$custom-light: #fffac2;
$custom-dark: #000000;
JSON
{
  "hex": "#fff8a7",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 167
  },
  "hsl": {
    "h": 55.227,
    "s": 100,
    "l": 82.745
  },
  "oklch": {
    "l": 0.96646,
    "c": 0.1013,
    "h": 103.9
  },
  "luminance": 0.91185
}

Semantic roles & 50–950 ramp

primary
#FFF8A7
secondary
#6670E4
accent
#12E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181712
muted
#868582

Preview Lab

Preview with #FFF8A7

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

Preview Lab → · Contrast checker → · Palette generator →

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