#F8DC5C#F8DC5C

#F8DC5C is a very light, vivid yellow. Relative luminance 0.719; OKLCH L 89.4% C 0.148 H 96.9°. Best body text is #000000 at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#F8DC5C
RGBrgb(248, 220, 92)
HSLhsl(49, 92%, 67%)
HSVhsv(49, 63%, 97%)
CMYKcmyk(0%, 11.3%, 62.9%, 2.7%)
CIE-LABlab(87.93, -4.67, 64.53)
CIE-LCHlch(87.93, 64.70, 94.14°)
OKLaboklab(89.44% -0.0178 0.1471)
OKLCHoklch(89.44% 0.148 96.9)
XYZxyz(66.2393, 71.9187, 20.5158)
Luminance0.7192 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DC5C #5C78F8
analogous
#F88E5C #F8DC5C #C6F85C
triadic
#F8DC5C #5CF8DC #DC5CF8
tetradic
#F8DC5C #5CF88E #5C78F8 #F85CC6
square
#F8DC5C #5CF88E #5C78F8 #F85CC6
split-complementary
#F8DC5C #5CC6F8 #8E5CF8
monochromatic
#D1AD09 #F5CF21 #F8DC5C #FBE997 #FDF5D1

Accessibility & contrast

On white

1.37
#F8DC5C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.38
#F8DC5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DC5C
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DC5C#FFFFFF#000000##000000
##F8DC5C1.001.3715.3815.38
#FFFFFF1.371.0021.0021.00
#00000015.3821.001.001.00
##00000015.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0D74D
Deuteranopia (green-blind)
#F8E162
Tritanopia (blue-blind)
#FFCDC1
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f8dc5c;
/* rgb */ color: rgb(248, 220, 92);
/* oklch */ color: oklch(89.4% 0.148 96.9);
Tailwind
colors: {
  custom: {
    50: '#fee68f',
    500: '#f8dc5c',
    950: '#000000',
  },
}
SCSS
$custom: #f8dc5c;
$custom-light: #fee68f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8dc5c",
  "rgb": {
    "r": 248,
    "g": 220,
    "b": 92
  },
  "hsl": {
    "h": 49.231,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.89439,
    "c": 0.14816,
    "h": 96.9
  },
  "luminance": 0.71916
}

Semantic roles & 50–950 ramp

primary
#F8DC5C
secondary
#2C49CC
accent
#29E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150D
muted
#86847F

Preview Lab

Preview with #F8DC5C

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

Preview Lab → · Contrast checker → · Palette generator →

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