#FFFF97#FFFF97

#FFFF97 is a very light, vivid yellow. Relative luminance 0.950; OKLCH L 97.8% C 0.127 H 108.5°. Best body text is #000000 at 20.00:1 contrast (WCAG AA passes).

Color values

HEX#FFFF97
RGBrgb(255, 255, 151)
HSLhsl(60, 100%, 80%)
HSVhsv(60, 41%, 100%)
CMYKcmyk(0%, 0%, 40.8%, 0%)
CIE-LABlab(98.04, -14.43, 49.59)
CIE-LCHlch(98.04, 51.65, 106.23°)
OKLaboklab(97.81% -0.0402 0.12)
OKLCHoklch(97.81% 0.127 108.5)
XYZxyz(82.5872, 95.0161, 43.2615)
Luminance0.9501 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFF97 #9797FF
analogous
#FFCB97 #FFFF97 #CBFF97
triadic
#FFFF97 #97FFFF #FF97FF
tetradic
#FFFF97 #97FFCB #9797FF #FF97CB
square
#FFFF97 #97FFCB #9797FF #FF97CB
split-complementary
#FFFF97 #97CBFF #CB97FF
monochromatic
#FFFF1D #FFFF5A #FFFF97 #FFFFD4 #FFFFE0

Accessibility & contrast

On white

1.05
#FFFF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

20.00
#FFFF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFF97
20.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFF97#FFFFFF#000000##000000
##FFFF971.001.0520.0020.00
#FFFFFF1.051.0021.0021.00
#00000020.0021.001.001.00
##00000020.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF78F
Deuteranopia (green-blind)
#FFFB9C
Tritanopia (blue-blind)
#FFF3E6
Achromatopsia (no color)
#F9F9F9

Design tokens & code

CSS
--color: #ffff97;
/* rgb */ color: rgb(255, 255, 151);
/* oklch */ color: oklch(97.8% 0.127 108.5);
Tailwind
colors: {
  custom: {
    50: '#ffffb7',
    500: '#ffff97',
    950: '#000000',
  },
}
SCSS
$custom: #ffff97;
$custom-light: #ffffb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ffff97",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 151
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.97806,
    "c": 0.12655,
    "h": 108.5
  },
  "luminance": 0.95014
}

Semantic roles & 50–950 ramp

primary
#FFFF97
secondary
#5959E2
accent
#00E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFFF97

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

Preview Lab → · Contrast checker → · Palette generator →

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