#F5D97A#F5D97A

#F5D97A is a very light, moderate yellow. Relative luminance 0.704; OKLCH L 88.9% C 0.119 H 93.4°. Best body text is #000000 at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#F5D97A
RGBrgb(245, 217, 122)
HSLhsl(46, 86%, 72%)
HSVhsv(46, 50%, 96%)
CMYKcmyk(0%, 11.4%, 50.2%, 3.9%)
CIE-LABlab(87.22, -2.17, 49.98)
CIE-LCHlch(87.22, 50.02, 92.48°)
OKLaboklab(88.91% -0.007 0.119)
OKLCHoklch(88.91% 0.119 93.4)
XYZxyz(65.9842, 70.4462, 28.5304)
Luminance0.7044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D97A #7A96F5
analogous
#F59B7A #F5D97A #D4F57A
triadic
#F5D97A #7AF5D9 #D97AF5
tetradic
#F5D97A #7AF59B #7A96F5 #F57AD4
square
#F5D97A #7AF59B #7A96F5 #F57AD4
split-complementary
#F5D97A #7AD4F5 #9B7AF5
monochromatic
#E3B411 #F1C941 #F5D97A #F9E9B3 #FDF7E3

Accessibility & contrast

On white

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

On black

15.09
#F5D97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D97A
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D97A#FFFFFF#000000##000000
##F5D97A1.001.3915.0915.09
#FFFFFF1.391.0021.0021.00
#00000015.0921.001.001.00
##00000015.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD672
Deuteranopia (green-blind)
#F2DE7E
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f5d97a;
/* rgb */ color: rgb(245, 217, 122);
/* oklch */ color: oklch(88.9% 0.119 93.4);
Tailwind
colors: {
  custom: {
    50: '#fbe4a2',
    500: '#f5d97a',
    950: '#000000',
  },
}
SCSS
$custom: #f5d97a;
$custom-light: #fbe4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d97a",
  "rgb": {
    "r": 245,
    "g": 217,
    "b": 122
  },
  "hsl": {
    "h": 46.341,
    "s": 86.014,
    "l": 71.961
  },
  "oklch": {
    "l": 0.88911,
    "c": 0.11924,
    "h": 93.4
  },
  "luminance": 0.70443
}

Semantic roles & 50–950 ramp

primary
#F5D97A
secondary
#4363D0
accent
#36E303
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F5D97A

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

Preview Lab → · Contrast checker → · Palette generator →

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