#F7DC8A#F7DC8A

#F7DC8A is a very light, moderate yellow. Relative luminance 0.728; OKLCH L 89.9% C 0.106 H 91.8°. Best body text is #000000 at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#F7DC8A
RGBrgb(247, 220, 138)
HSLhsl(45, 87%, 75%)
HSVhsv(45, 44%, 97%)
CMYKcmyk(0%, 10.9%, 44.1%, 3.1%)
CIE-LABlab(88.35, -1.42, 43.59)
CIE-LCHlch(88.35, 43.62, 91.86°)
OKLaboklab(89.92% -0.0034 0.1058)
OKLCHoklch(89.92% 0.106 91.8)
XYZxyz(68.5404, 72.7983, 34.4809)
Luminance0.7280 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7DC8A #8AA5F7
analogous
#F7A58A #F7DC8A #DBF78A
triadic
#F7DC8A #8AF7DC #DC8AF7
tetradic
#F7DC8A #8AF7A5 #8AA5F7 #F78ADB
square
#F7DC8A #8AF7A5 #8AA5F7 #F78ADB
split-complementary
#F7DC8A #8ADBF7 #A58AF7
monochromatic
#EFBA17 #F3CB51 #F7DC8A #FBEDC3 #FDF6E2

Accessibility & contrast

On white

1.35
#F7DC8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.56
#F7DC8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7DC8A
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7DC8A#FFFFFF#000000##000000
##F7DC8A1.001.3515.5615.56
#FFFFFF1.351.0021.0021.00
#00000015.5621.001.001.00
##00000015.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD984
Deuteranopia (green-blind)
#F3E18D
Tritanopia (blue-blind)
#FFD0C8
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f7dc8a;
/* rgb */ color: rgb(247, 220, 138);
/* oklch */ color: oklch(89.9% 0.106 91.8);
Tailwind
colors: {
  custom: {
    50: '#fce6ad',
    500: '#f7dc8a',
    950: '#000000',
  },
}
SCSS
$custom: #f7dc8a;
$custom-light: #fce6ad;
$custom-dark: #000000;
JSON
{
  "hex": "#f7dc8a",
  "rgb": {
    "r": 247,
    "g": 220,
    "b": 138
  },
  "hsl": {
    "h": 45.138,
    "s": 87.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.89916,
    "c": 0.10586,
    "h": 91.8
  },
  "luminance": 0.72796
}

Semantic roles & 50–950 ramp

primary
#F7DC8A
secondary
#5071D5
accent
#3AE402
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#181510
muted
#868481

Preview Lab

Preview with #F7DC8A

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

Preview Lab → · Contrast checker → · Palette generator →

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