#F5E997#F5E997

#F5E997 is a very light, moderate yellow. Relative luminance 0.799; OKLCH L 92.5% C 0.103 H 101.0°. Best body text is #000000 at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#F5E997
RGBrgb(245, 233, 151)
HSLhsl(52, 82%, 78%)
HSVhsv(52, 38%, 96%)
CMYKcmyk(0%, 4.9%, 38.4%, 3.9%)
CIE-LABlab(91.65, -7.42, 41.32)
CIE-LCHlch(91.65, 41.98, 100.18°)
OKLaboklab(92.55% -0.0196 0.1013)
OKLCHoklch(92.55% 0.103 101)
XYZxyz(72.3823, 79.9267, 40.8867)
Luminance0.7993 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E997 #97A3F5
analogous
#F5BA97 #F5E997 #D2F597
triadic
#F5E997 #97F5E9 #E997F5
tetradic
#F5E997 #97F5BA #97A3F5 #F597D2
square
#F5E997 #97F5BA #97A3F5 #F597D2
split-complementary
#F5E997 #97D2F5 #BA97F5
monochromatic
#EAD127 #F0DD5F #F5E997 #FAF5CF #FCF9E3

Accessibility & contrast

On white

1.24
#F5E997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.99
#F5E997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E997
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E997#FFFFFF#000000##000000
##F5E9971.001.2416.9916.99
#FFFFFF1.241.0021.0021.00
#00000016.9921.001.001.00
##00000016.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7E491
Deuteranopia (green-blind)
#FBE99A
Tritanopia (blue-blind)
#FFDED4
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f5e997;
/* rgb */ color: rgb(245, 233, 151);
/* oklch */ color: oklch(92.5% 0.103 101.0);
Tailwind
colors: {
  custom: {
    50: '#faefb6',
    500: '#f5e997',
    950: '#000000',
  },
}
SCSS
$custom: #f5e997;
$custom-light: #faefb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e997",
  "rgb": {
    "r": 245,
    "g": 233,
    "b": 151
  },
  "hsl": {
    "h": 52.34,
    "s": 82.456,
    "l": 77.647
  },
  "oklch": {
    "l": 0.92546,
    "c": 0.10316,
    "h": 101
  },
  "luminance": 0.79925
}

Semantic roles & 50–950 ramp

primary
#F5E997
secondary
#5D6CD3
accent
#22DF07
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F5E997

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

Preview Lab → · Contrast checker → · Palette generator →

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