#FFF997#FFF997

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

Color values

HEX#FFF997
RGBrgb(255, 249, 151)
HSLhsl(57, 100%, 80%)
HSVhsv(57, 41%, 100%)
CMYKcmyk(0%, 2.4%, 40.8%, 0%)
CIE-LABlab(96.51, -11.50, 47.67)
CIE-LCHlch(96.51, 49.04, 103.56°)
OKLaboklab(96.59% -0.0318 0.1157)
OKLCHoklch(96.59% 0.12 105.4)
XYZxyz(80.7030, 91.2477, 42.6335)
Luminance0.9125 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF997 #979DFF
analogous
#FFC597 #FFF997 #D1FF97
triadic
#FFF997 #97FFF9 #F997FF
tetradic
#FFF997 #97FFC5 #979DFF #FF97D1
square
#FFF997 #97FFC5 #979DFF #FF97D1
split-complementary
#FFF997 #97D1FF #C597FF
monochromatic
#FFF21D #FFF55A #FFF997 #FFFDD4 #FFFDE0

Accessibility & contrast

On white

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

On black

19.25
#FFF997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF997
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF997#FFFFFF#000000##000000
##FFF9971.001.0919.2519.25
#FFFFFF1.091.0021.0021.00
#00000019.2521.001.001.00
##00000019.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF28F
Deuteranopia (green-blind)
#FFF79B
Tritanopia (blue-blind)
#FFEDE1
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fff997;
/* rgb */ color: rgb(255, 249, 151);
/* oklch */ color: oklch(96.6% 0.120 105.4);
Tailwind
colors: {
  custom: {
    50: '#fffbb7',
    500: '#fff997',
    950: '#000000',
  },
}
SCSS
$custom: #fff997;
$custom-light: #fffbb7;
$custom-dark: #000000;
JSON
{
  "hex": "#fff997",
  "rgb": {
    "r": 255,
    "g": 249,
    "b": 151
  },
  "hsl": {
    "h": 56.538,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.96592,
    "c": 0.11995,
    "h": 105.4
  },
  "luminance": 0.91246
}

Semantic roles & 50–950 ramp

primary
#FFF997
secondary
#5960E2
accent
#0DE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFF997

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

Preview Lab → · Contrast checker → · Palette generator →

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