#FFF8A4#FFF8A4

#FFF8A4 is a very light, moderate yellow. Relative luminance 0.911; OKLCH L 96.6% C 0.105 H 104.1°. Best body text is #000000 at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#FFF8A4
RGBrgb(255, 248, 164)
HSLhsl(55, 100%, 82%)
HSVhsv(55, 36%, 100%)
CMYKcmyk(0%, 2.7%, 35.7%, 0%)
CIE-LABlab(96.44, -9.63, 41.23)
CIE-LCHlch(96.44, 42.34, 103.14°)
OKLaboklab(96.6% -0.0255 0.1015)
OKLCHoklch(96.6% 0.105 104.1)
XYZxyz(81.5093, 91.0770, 48.4006)
Luminance0.9107 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF8A4 #A4ABFF
analogous
#FFCBA4 #FFF8A4 #D8FFA4
triadic
#FFF8A4 #A4FFF8 #F8A4FF
tetradic
#FFF8A4 #A4FFCB #A4ABFF #FFA4D8
square
#FFF8A4 #A4FFCB #A4ABFF #FFA4D8
split-complementary
#FFF8A4 #A4D8FF #CBA4FF
monochromatic
#FFEF2A #FFF367 #FFF8A4 #FFFDE0 #FFFDE0

Accessibility & contrast

On white

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

On black

19.22
#FFF8A4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF8A4
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF8A4#FFFFFF#000000##000000
##FFF8A41.001.0919.2219.22
#FFFFFF1.091.0021.0021.00
#00000019.2221.001.001.00
##00000019.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF29E
Deuteranopia (green-blind)
#FFF7A7
Tritanopia (blue-blind)
#FFEDE3
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fff8a4;
/* rgb */ color: rgb(255, 248, 164);
/* oklch */ color: oklch(96.6% 0.105 104.1);
Tailwind
colors: {
  custom: {
    50: '#fffac0',
    500: '#fff8a4',
    950: '#000000',
  },
}
SCSS
$custom: #fff8a4;
$custom-light: #fffac0;
$custom-dark: #000000;
JSON
{
  "hex": "#fff8a4",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 164
  },
  "hsl": {
    "h": 55.385,
    "s": 100,
    "l": 82.157
  },
  "oklch": {
    "l": 0.96596,
    "c": 0.10468,
    "h": 104.1
  },
  "luminance": 0.91075
}

Semantic roles & 50–950 ramp

primary
#FFF8A4
secondary
#646DE4
accent
#12E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181712
muted
#868582

Preview Lab

Preview with #FFF8A4

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

Preview Lab → · Contrast checker → · Palette generator →

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