#F7D97F#F7D97F

#F7D97F is a very light, moderate yellow. Relative luminance 0.709; OKLCH L 89.2% C 0.115 H 91.5°. Best body text is #000000 at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#F7D97F
RGBrgb(247, 217, 127)
HSLhsl(45, 88%, 73%)
HSVhsv(45, 49%, 97%)
CMYKcmyk(0%, 12.1%, 48.6%, 3.1%)
CIE-LABlab(87.45, -0.92, 47.88)
CIE-LCHlch(87.45, 47.89, 91.10°)
OKLaboklab(89.16% -0.003 0.1147)
OKLCHoklch(89.16% 0.115 91.5)
XYZxyz(67.0037, 70.9351, 30.2370)
Luminance0.7093 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7D97F #7F9DF7
analogous
#F79D7F #F7D97F #D9F77F
triadic
#F7D97F #7FF7D9 #D97FF7
tetradic
#F7D97F #7FF79D #7F9DF7 #F77FD9
square
#F7D97F #7FF79D #7F9DF7 #F77FD9
split-complementary
#F7D97F #7FD9F7 #9D7FF7
monochromatic
#EDB50F #F3C845 #F7D97F #FBEAB9 #FDF6E2

Accessibility & contrast

On white

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

On black

15.19
#F7D97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7D97F
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7D97F#FFFFFF#000000##000000
##F7D97F1.001.3815.1915.19
#FFFFFF1.381.0021.0021.00
#00000015.1921.001.001.00
##00000015.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f7d97f;
/* rgb */ color: rgb(247, 217, 127);
/* oklch */ color: oklch(89.2% 0.115 91.5);
Tailwind
colors: {
  custom: {
    50: '#fce4a6',
    500: '#f7d97f',
    950: '#000000',
  },
}
SCSS
$custom: #f7d97f;
$custom-light: #fce4a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f7d97f",
  "rgb": {
    "r": 247,
    "g": 217,
    "b": 127
  },
  "hsl": {
    "h": 45,
    "s": 88.235,
    "l": 73.333
  },
  "oklch": {
    "l": 0.8916,
    "c": 0.11478,
    "h": 91.5
  },
  "luminance": 0.70932
}

Semantic roles & 50–950 ramp

primary
#F7D97F
secondary
#476AD3
accent
#3AE501
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F7D97F

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

Preview Lab → · Contrast checker → · Palette generator →

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