#F8DC7A#F8DC7A

#F8DC7A is a very light, vivid yellow. Relative luminance 0.725; OKLCH L 89.8% C 0.122 H 93.8°. Best body text is #000000 at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#F8DC7A
RGBrgb(248, 220, 122)
HSLhsl(47, 90%, 73%)
HSVhsv(47, 51%, 97%)
CMYKcmyk(0%, 11.3%, 50.8%, 2.7%)
CIE-LABlab(88.23, -2.48, 51.27)
CIE-LCHlch(88.23, 51.33, 92.77°)
OKLaboklab(89.78% -0.0081 0.1218)
OKLCHoklch(89.78% 0.122 93.8)
XYZxyz(67.8198, 72.5509, 28.8400)
Luminance0.7255 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DC7A #7A96F8
analogous
#F89D7A #F8DC7A #D5F87A
triadic
#F8DC7A #7AF8DC #DC7AF8
tetradic
#F8DC7A #7AF89D #7A96F8 #F87AD5
square
#F8DC7A #7AF89D #7A96F8 #F87AD5
split-complementary
#F8DC7A #7AD5F8 #9D7AF8
monochromatic
#EBBA0C #F5CD40 #F8DC7A #FBEBB4 #FDF7E2

Accessibility & contrast

On white

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

On black

15.51
#F8DC7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DC7A
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DC7A#FFFFFF#000000##000000
##F8DC7A1.001.3515.5115.51
#FFFFFF1.351.0021.0021.00
#00000015.5121.001.001.00
##00000015.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#EED871
Deuteranopia (green-blind)
#F5E17E
Tritanopia (blue-blind)
#FFCFC5
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f8dc7a;
/* rgb */ color: rgb(248, 220, 122);
/* oklch */ color: oklch(89.8% 0.122 93.8);
Tailwind
colors: {
  custom: {
    50: '#fde6a2',
    500: '#f8dc7a',
    950: '#000000',
  },
}
SCSS
$custom: #f8dc7a;
$custom-light: #fde6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8dc7a",
  "rgb": {
    "r": 248,
    "g": 220,
    "b": 122
  },
  "hsl": {
    "h": 46.667,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.89777,
    "c": 0.1221,
    "h": 93.8
  },
  "luminance": 0.72548
}

Semantic roles & 50–950 ramp

primary
#F8DC7A
secondary
#4263D4
accent
#33E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8DC7A

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

Preview Lab → · Contrast checker → · Palette generator →

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