#F5D97E#F5D97E

#F5D97E is a very light, moderate yellow. Relative luminance 0.705; OKLCH L 89.0% C 0.115 H 92.8°. Best body text is #000000 at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#F5D97E
RGBrgb(245, 217, 126)
HSLhsl(46, 86%, 73%)
HSVhsv(46, 49%, 96%)
CMYKcmyk(0%, 11.4%, 48.6%, 3.9%)
CIE-LABlab(87.26, -1.81, 48.10)
CIE-LCHlch(87.26, 48.13, 92.16°)
OKLaboklab(88.97% -0.0056 0.1152)
OKLCHoklch(88.97% 0.115 92.8)
XYZxyz(66.2371, 70.5474, 29.8626)
Luminance0.7055 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D97E #7E9AF5
analogous
#F59D7E #F5D97E #D6F57E
triadic
#F5D97E #7EF5D9 #D97EF5
tetradic
#F5D97E #7EF59D #7E9AF5 #F57ED6
square
#F5D97E #7EF59D #7E9AF5 #F57ED6
split-complementary
#F5D97E #7ED6F5 #9D7EF5
monochromatic
#E7B512 #F1C845 #F5D97E #F9EAB7 #FDF7E3

Accessibility & contrast

On white

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

On black

15.11
#F5D97E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D97E
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D97E#FFFFFF#000000##000000
##F5D97E1.001.3915.1115.11
#FFFFFF1.391.0021.0021.00
#00000015.1121.001.001.00
##00000015.1121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f5d97e;
/* rgb */ color: rgb(245, 217, 126);
/* oklch */ color: oklch(89.0% 0.115 92.8);
Tailwind
colors: {
  custom: {
    50: '#fbe4a5',
    500: '#f5d97e',
    950: '#000000',
  },
}
SCSS
$custom: #f5d97e;
$custom-light: #fbe4a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d97e",
  "rgb": {
    "r": 245,
    "g": 217,
    "b": 126
  },
  "hsl": {
    "h": 45.882,
    "s": 85.612,
    "l": 72.745
  },
  "oklch": {
    "l": 0.88966,
    "c": 0.11532,
    "h": 92.8
  },
  "luminance": 0.70545
}

Semantic roles & 50–950 ramp

primary
#F5D97E
secondary
#4667D1
accent
#38E203
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F5D97E

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

Preview Lab → · Contrast checker → · Palette generator →

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