#FFF8A2#FFF8A2

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

Color values

HEX#FFF8A2
RGBrgb(255, 248, 162)
HSLhsl(55, 100%, 82%)
HSVhsv(55, 36%, 100%)
CMYKcmyk(0%, 2.7%, 36.5%, 0%)
CIE-LABlab(96.41, -9.85, 42.18)
CIE-LCHlch(96.41, 43.31, 103.14°)
OKLaboklab(96.56% -0.0263 0.1036)
OKLCHoklch(96.56% 0.107 104.2)
XYZxyz(81.3301, 91.0053, 47.4569)
Luminance0.9100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF8A2 #A2A9FF
analogous
#FFCAA2 #FFF8A2 #D8FFA2
triadic
#FFF8A2 #A2FFF8 #F8A2FF
tetradic
#FFF8A2 #A2FFCA #A2A9FF #FFA2D8
square
#FFF8A2 #A2FFCA #A2A9FF #FFA2D8
split-complementary
#FFF8A2 #A2D8FF #CAA2FF
monochromatic
#FFEF28 #FFF365 #FFF8A2 #FFFDDF #FFFDE0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FFF8A2#FFFFFF#000000##000000
##FFF8A21.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)
#FFF29C
Deuteranopia (green-blind)
#FFF7A5
Tritanopia (blue-blind)
#FFEDE2
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fff8a2;
/* rgb */ color: rgb(255, 248, 162);
/* oklch */ color: oklch(96.6% 0.107 104.2);
Tailwind
colors: {
  custom: {
    50: '#fffabe',
    500: '#fff8a2',
    950: '#000000',
  },
}
SCSS
$custom: #fff8a2;
$custom-light: #fffabe;
$custom-dark: #000000;
JSON
{
  "hex": "#fff8a2",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 162
  },
  "hsl": {
    "h": 55.484,
    "s": 100,
    "l": 81.765
  },
  "oklch": {
    "l": 0.96563,
    "c": 0.10692,
    "h": 104.2
  },
  "luminance": 0.91003
}

Semantic roles & 50–950 ramp

primary
#FFF8A2
secondary
#626CE3
accent
#11E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181712
muted
#868582

Preview Lab

Preview with #FFF8A2

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

Preview Lab → · Contrast checker → · Palette generator →

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