#F5D97C#F5D97C

#F5D97C is a very light, moderate yellow. Relative luminance 0.705; OKLCH L 88.9% C 0.117 H 93.1°. Best body text is #000000 at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#F5D97C
RGBrgb(245, 217, 124)
HSLhsl(46, 86%, 72%)
HSVhsv(46, 49%, 96%)
CMYKcmyk(0%, 11.4%, 49.4%, 3.9%)
CIE-LABlab(87.24, -1.99, 49.04)
CIE-LCHlch(87.24, 49.08, 92.32°)
OKLaboklab(88.94% -0.0063 0.1171)
OKLCHoklch(88.94% 0.117 93.1)
XYZxyz(66.1094, 70.4963, 29.1897)
Luminance0.7049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D97C #7C98F5
analogous
#F59D7C #F5D97C #D4F57C
triadic
#F5D97C #7CF5D9 #D97CF5
tetradic
#F5D97C #7CF59D #7C98F5 #F57CD4
square
#F5D97C #7CF59D #7C98F5 #F57CD4
split-complementary
#F5D97C #7CD4F5 #9D7CF5
monochromatic
#E5B411 #F1C943 #F5D97C #F9E9B5 #FDF7E3

Accessibility & contrast

On white

1.39
#F5D97C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.10
#F5D97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D97C
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D97C#FFFFFF#000000##000000
##F5D97C1.001.3915.1015.10
#FFFFFF1.391.0021.0021.00
#00000015.1021.001.001.00
##00000015.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD674
Deuteranopia (green-blind)
#F2DE80
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f5d97c;
/* rgb */ color: rgb(245, 217, 124);
/* oklch */ color: oklch(88.9% 0.117 93.1);
Tailwind
colors: {
  custom: {
    50: '#fbe4a4',
    500: '#f5d97c',
    950: '#000000',
  },
}
SCSS
$custom: #f5d97c;
$custom-light: #fbe4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d97c",
  "rgb": {
    "r": 245,
    "g": 217,
    "b": 124
  },
  "hsl": {
    "h": 46.116,
    "s": 85.816,
    "l": 72.353
  },
  "oklch": {
    "l": 0.88938,
    "c": 0.11728,
    "h": 93.1
  },
  "luminance": 0.70493
}

Semantic roles & 50–950 ramp

primary
#F5D97C
secondary
#4565D1
accent
#37E203
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F5D97C

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

Preview Lab → · Contrast checker → · Palette generator →

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