#F5D97B#F5D97B

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

Color values

HEX#F5D97B
RGBrgb(245, 217, 123)
HSLhsl(46, 86%, 72%)
HSVhsv(46, 50%, 96%)
CMYKcmyk(0%, 11.4%, 49.8%, 3.9%)
CIE-LABlab(87.23, -2.08, 49.51)
CIE-LCHlch(87.23, 49.55, 92.40°)
OKLaboklab(88.92% -0.0067 0.1181)
OKLCHoklch(88.92% 0.118 93.2)
XYZxyz(66.0464, 70.4711, 28.8584)
Luminance0.7047 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D97B #7B97F5
analogous
#F59C7B #F5D97B #D4F57B
triadic
#F5D97B #7BF5D9 #D97BF5
tetradic
#F5D97B #7BF59C #7B97F5 #F57BD4
square
#F5D97B #7BF59C #7B97F5 #F57BD4
split-complementary
#F5D97B #7BD4F5 #9C7BF5
monochromatic
#E4B411 #F1C942 #F5D97B #F9E9B4 #FDF7E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F5D97B#FFFFFF#000000##000000
##F5D97B1.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)
#EBD673
Deuteranopia (green-blind)
#F2DE7F
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f5d97b;
/* rgb */ color: rgb(245, 217, 123);
/* oklch */ color: oklch(88.9% 0.118 93.2);
Tailwind
colors: {
  custom: {
    50: '#fbe4a3',
    500: '#f5d97b',
    950: '#000000',
  },
}
SCSS
$custom: #f5d97b;
$custom-light: #fbe4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d97b",
  "rgb": {
    "r": 245,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 46.23,
    "s": 85.915,
    "l": 72.157
  },
  "oklch": {
    "l": 0.88924,
    "c": 0.11826,
    "h": 93.2
  },
  "luminance": 0.70468
}

Semantic roles & 50–950 ramp

primary
#F5D97B
secondary
#4464D0
accent
#36E203
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F5D97B

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

Preview Lab → · Contrast checker → · Palette generator →

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