#F5E397#F5E397

#F5E397 is a very light, moderate yellow. Relative luminance 0.766; OKLCH L 91.3% C 0.097 H 96.4°. Best body text is #000000 at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#F5E397
RGBrgb(245, 227, 151)
HSLhsl(49, 82%, 78%)
HSVhsv(49, 38%, 96%)
CMYKcmyk(0%, 7.3%, 38.4%, 3.9%)
CIE-LABlab(90.13, -4.40, 39.35)
CIE-LCHlch(90.13, 39.60, 96.38°)
OKLaboklab(91.34% -0.0109 0.0968)
OKLCHoklch(91.34% 0.097 96.4)
XYZxyz(70.7126, 76.5872, 40.3301)
Luminance0.7659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E397 #97A9F5
analogous
#F5B497 #F5E397 #D8F597
triadic
#F5E397 #97F5E3 #E397F5
tetradic
#F5E397 #97F5B4 #97A9F5 #F597D8
square
#F5E397 #97F5B4 #97A9F5 #F597D8
split-complementary
#F5E397 #97D8F5 #B497F5
monochromatic
#EAC527 #F0D45F #F5E397 #FAF2CF #FCF7E3

Accessibility & contrast

On white

1.29
#F5E397 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.32
#F5E397 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E397
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E397#FFFFFF#000000##000000
##F5E3971.001.2916.3216.32
#FFFFFF1.291.0021.0021.00
#00000016.3221.001.001.00
##00000016.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F2DF91
Deuteranopia (green-blind)
#F7E59A
Tritanopia (blue-blind)
#FFD8D0
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f5e397;
/* rgb */ color: rgb(245, 227, 151);
/* oklch */ color: oklch(91.3% 0.097 96.4);
Tailwind
colors: {
  custom: {
    50: '#faebb6',
    500: '#f5e397',
    950: '#000000',
  },
}
SCSS
$custom: #f5e397;
$custom-light: #faebb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e397",
  "rgb": {
    "r": 245,
    "g": 227,
    "b": 151
  },
  "hsl": {
    "h": 48.511,
    "s": 82.456,
    "l": 77.647
  },
  "oklch": {
    "l": 0.91343,
    "c": 0.09737,
    "h": 96.4
  },
  "luminance": 0.76585
}

Semantic roles & 50–950 ramp

primary
#F5E397
secondary
#5D73D3
accent
#30DF07
background
#FFFEFD
surface
#FFFDF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F5E397

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

Preview Lab → · Contrast checker → · Palette generator →

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