#FFF397#FFF397

#FFF397 is a very light, moderate yellow. Relative luminance 0.876; OKLCH L 95.4% C 0.114 H 101.8°. Best body text is #000000 at 18.52:1 contrast (WCAG AA passes).

Color values

HEX#FFF397
RGBrgb(255, 243, 151)
HSLhsl(53, 100%, 80%)
HSVhsv(53, 41%, 100%)
CMYKcmyk(0%, 4.7%, 40.8%, 0%)
CIE-LABlab(94.99, -8.54, 45.75)
CIE-LCHlch(94.99, 46.54, 100.58°)
OKLaboklab(95.39% -0.0233 0.1113)
OKLCHoklch(95.39% 0.114 101.8)
XYZxyz(78.8781, 87.5978, 42.0252)
Luminance0.8760 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF397 #97A3FF
analogous
#FFBF97 #FFF397 #D7FF97
triadic
#FFF397 #97FFF3 #F397FF
tetradic
#FFF397 #97FFBF #97A3FF #FF97D7
square
#FFF397 #97FFBF #97A3FF #FF97D7
split-complementary
#FFF397 #97D7FF #BF97FF
monochromatic
#FFE51D #FFEC5A #FFF397 #FFFAD4 #FFFBE0

Accessibility & contrast

On white

1.13
#FFF397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.52
#FFF397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF397
18.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF397#FFFFFF#000000##000000
##FFF3971.001.1318.5218.52
#FFFFFF1.131.0021.0021.00
#00000018.5221.001.001.00
##00000018.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED90
Deuteranopia (green-blind)
#FFF39B
Tritanopia (blue-blind)
#FFE7DC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fff397;
/* rgb */ color: rgb(255, 243, 151);
/* oklch */ color: oklch(95.4% 0.114 101.8);
Tailwind
colors: {
  custom: {
    50: '#fff6b7',
    500: '#fff397',
    950: '#000000',
  },
}
SCSS
$custom: #fff397;
$custom-light: #fff6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fff397",
  "rgb": {
    "r": 255,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 53.077,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.95385,
    "c": 0.11372,
    "h": 101.8
  },
  "luminance": 0.87596
}

Semantic roles & 50–950 ramp

primary
#FFF397
secondary
#5968E2
accent
#1AE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFF397

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

Preview Lab → · Contrast checker → · Palette generator →

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