#FFF896#FFF896

#FFF896 is a very light, moderate yellow. Relative luminance 0.906; OKLCH L 96.4% C 0.120 H 104.9°. Best body text is #000000 at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#FFF896
RGBrgb(255, 248, 150)
HSLhsl(56, 100%, 79%)
HSVhsv(56, 41%, 100%)
CMYKcmyk(0%, 2.7%, 41.2%, 0%)
CIE-LABlab(96.24, -11.11, 47.82)
CIE-LCHlch(96.24, 49.09, 103.08°)
OKLaboklab(96.38% -0.0308 0.1159)
OKLCHoklch(96.38% 0.12 104.9)
XYZxyz(80.3139, 90.5989, 42.1048)
Luminance0.9060 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF896 #969DFF
analogous
#FFC496 #FFF896 #D2FF96
triadic
#FFF896 #96FFF8 #F896FF
tetradic
#FFF896 #96FFC4 #969DFF #FF96D2
square
#FFF896 #96FFC4 #969DFF #FF96D2
split-complementary
#FFF896 #96D2FF #C496FF
monochromatic
#FFF01C #FFF459 #FFF896 #FFFCD3 #FFFDE0

Accessibility & contrast

On white

1.10
#FFF896 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.12
#FFF896 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF896
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF896#FFFFFF#000000##000000
##FFF8961.001.1019.1219.12
#FFFFFF1.101.0021.0021.00
#00000019.1221.001.001.00
##00000019.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF18E
Deuteranopia (green-blind)
#FFF69A
Tritanopia (blue-blind)
#FFECE0
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fff896;
/* rgb */ color: rgb(255, 248, 150);
/* oklch */ color: oklch(96.4% 0.120 104.9);
Tailwind
colors: {
  custom: {
    50: '#fffab6',
    500: '#fff896',
    950: '#000000',
  },
}
SCSS
$custom: #fff896;
$custom-light: #fffab6;
$custom-dark: #000000;
JSON
{
  "hex": "#fff896",
  "rgb": {
    "r": 255,
    "g": 248,
    "b": 150
  },
  "hsl": {
    "h": 56,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.96375,
    "c": 0.11995,
    "h": 104.9
  },
  "luminance": 0.90597
}

Semantic roles & 50–950 ramp

primary
#FFF896
secondary
#5861E1
accent
#0FE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFF896

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

Preview Lab → · Contrast checker → · Palette generator →

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