#F7D97B#F7D97B

#F7D97B is a very light, moderate yellow. Relative luminance 0.708; OKLCH L 89.1% C 0.119 H 92.2°. Best body text is #000000 at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#F7D97B
RGBrgb(247, 217, 123)
HSLhsl(45, 89%, 73%)
HSVhsv(45, 50%, 97%)
CMYKcmyk(0%, 12.1%, 50.2%, 3.1%)
CIE-LABlab(87.40, -1.28, 49.76)
CIE-LCHlch(87.40, 49.78, 91.47°)
OKLaboklab(89.11% -0.0045 0.1186)
OKLCHoklch(89.11% 0.119 92.2)
XYZxyz(66.7481, 70.8329, 28.8913)
Luminance0.7083 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7D97B #7B99F7
analogous
#F79B7B #F7D97B #D7F77B
triadic
#F7D97B #7BF7D9 #D97BF7
tetradic
#F7D97B #7BF79B #7B99F7 #F77BD7
square
#F7D97B #7BF79B #7B99F7 #F77BD7
split-complementary
#F7D97B #7BD7F7 #9B7BF7
monochromatic
#E9B40E #F4C841 #F7D97B #FAEAB5 #FDF7E2

Accessibility & contrast

On white

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

On black

15.17
#F7D97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7D97B
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7D97B#FFFFFF#000000##000000
##F7D97B1.001.3815.1715.17
#FFFFFF1.381.0021.0021.00
#00000015.1721.001.001.00
##00000015.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f7d97b;
/* rgb */ color: rgb(247, 217, 123);
/* oklch */ color: oklch(89.1% 0.119 92.2);
Tailwind
colors: {
  custom: {
    50: '#fce4a3',
    500: '#f7d97b',
    950: '#000000',
  },
}
SCSS
$custom: #f7d97b;
$custom-light: #fce4a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f7d97b",
  "rgb": {
    "r": 247,
    "g": 217,
    "b": 123
  },
  "hsl": {
    "h": 45.484,
    "s": 88.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.89105,
    "c": 0.11869,
    "h": 92.2
  },
  "luminance": 0.7083
}

Semantic roles & 50–950 ramp

primary
#F7D97B
secondary
#4366D3
accent
#38E500
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F7D97B

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

Preview Lab → · Contrast checker → · Palette generator →

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