#F5EA97#F5EA97

#F5EA97 is a very light, moderate yellow. Relative luminance 0.805; OKLCH L 92.7% C 0.104 H 101.7°. Best body text is #000000 at 17.10:1 contrast (WCAG AA passes).

Color values

HEX#F5EA97
RGBrgb(245, 234, 151)
HSLhsl(53, 82%, 78%)
HSVhsv(53, 38%, 96%)
CMYKcmyk(0%, 4.5%, 38.4%, 3.9%)
CIE-LABlab(91.91, -7.92, 41.64)
CIE-LCHlch(91.91, 42.39, 100.77°)
OKLaboklab(92.75% -0.0211 0.102)
OKLCHoklch(92.75% 0.104 101.7)
XYZxyz(72.6662, 80.4944, 40.9813)
Luminance0.8049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5EA97 #97A2F5
analogous
#F5BB97 #F5EA97 #D1F597
triadic
#F5EA97 #97F5EA #EA97F5
tetradic
#F5EA97 #97F5BB #97A2F5 #F597D1
square
#F5EA97 #97F5BB #97A2F5 #F597D1
split-complementary
#F5EA97 #97D1F5 #BB97F5
monochromatic
#EAD327 #F0DF5F #F5EA97 #FAF5CF #FCF9E3

Accessibility & contrast

On white

1.23
#F5EA97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.10
#F5EA97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5EA97
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5EA97#FFFFFF#000000##000000
##F5EA971.001.2317.1017.10
#FFFFFF1.231.0021.0021.00
#00000017.1021.001.001.00
##00000017.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E591
Deuteranopia (green-blind)
#FCEA9A
Tritanopia (blue-blind)
#FFDFD5
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #f5ea97;
/* rgb */ color: rgb(245, 234, 151);
/* oklch */ color: oklch(92.7% 0.104 101.7);
Tailwind
colors: {
  custom: {
    50: '#faf0b6',
    500: '#f5ea97',
    950: '#000000',
  },
}
SCSS
$custom: #f5ea97;
$custom-light: #faf0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5ea97",
  "rgb": {
    "r": 245,
    "g": 234,
    "b": 151
  },
  "hsl": {
    "h": 52.979,
    "s": 82.456,
    "l": 77.647
  },
  "oklch": {
    "l": 0.92747,
    "c": 0.10418,
    "h": 101.7
  },
  "luminance": 0.80492
}

Semantic roles & 50–950 ramp

primary
#F5EA97
secondary
#5D6BD3
accent
#20DF07
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F5EA97

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

Preview Lab → · Contrast checker → · Palette generator →

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