#F8D97A#F8D97A

#F8D97A is a very light, moderate yellow. Relative luminance 0.710; OKLCH L 89.2% C 0.120 H 91.8°. Best body text is #000000 at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#F8D97A
RGBrgb(248, 217, 122)
HSLhsl(45, 90%, 73%)
HSVhsv(45, 51%, 97%)
CMYKcmyk(0%, 12.5%, 50.8%, 2.7%)
CIE-LABlab(87.48, -0.96, 50.36)
CIE-LCHlch(87.48, 50.37, 91.09°)
OKLaboklab(89.18% -0.0037 0.1198)
OKLCHoklch(89.18% 0.12 91.8)
XYZxyz(67.0395, 70.9903, 28.5799)
Luminance0.7099 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D97A #7A99F8
analogous
#F89A7A #F8D97A #D8F87A
triadic
#F8D97A #7AF8D9 #D97AF8
tetradic
#F8D97A #7AF89A #7A99F8 #F87AD8
square
#F8D97A #7AF89A #7A99F8 #F87AD8
split-complementary
#F8D97A #7AD8F8 #9A7AF8
monochromatic
#EBB40C #F5C840 #F8D97A #FBEAB4 #FDF7E2

Accessibility & contrast

On white

1.38
#F8D97A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.20
#F8D97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D97A
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D97A#FFFFFF#000000##000000
##F8D97A1.001.3815.2015.20
#FFFFFF1.381.0021.0021.00
#00000015.2021.001.001.00
##00000015.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8d97a;
/* rgb */ color: rgb(248, 217, 122);
/* oklch */ color: oklch(89.2% 0.120 91.8);
Tailwind
colors: {
  custom: {
    50: '#fde4a2',
    500: '#f8d97a',
    950: '#000000',
  },
}
SCSS
$custom: #f8d97a;
$custom-light: #fde4a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d97a",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 122
  },
  "hsl": {
    "h": 45.238,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.89182,
    "c": 0.11989,
    "h": 91.8
  },
  "luminance": 0.70987
}

Semantic roles & 50–950 ramp

primary
#F8D97A
secondary
#4266D4
accent
#38E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8D97A

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

Preview Lab → · Contrast checker → · Palette generator →

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