#F8DC4F#F8DC4F

#F8DC4F is a very light, vivid yellow. Relative luminance 0.717; OKLCH L 89.3% C 0.158 H 97.8°. Best body text is #000000 at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#F8DC4F
RGBrgb(248, 220, 79)
HSLhsl(50, 92%, 64%)
HSVhsv(50, 68%, 97%)
CMYKcmyk(0%, 11.3%, 68.1%, 2.7%)
CIE-LABlab(87.83, -5.41, 69.71)
CIE-LCHlch(87.83, 69.92, 94.43°)
OKLaboklab(89.33% -0.0214 0.156)
OKLCHoklch(89.33% 0.158 97.8)
XYZxyz(65.7190, 71.7106, 17.7755)
Luminance0.7171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DC4F #4F6BF8
analogous
#F8884F #F8DC4F #C0F84F
triadic
#F8DC4F #4FF8DC #DC4FF8
tetradic
#F8DC4F #4FF888 #4F6BF8 #F84FC0
square
#F8DC4F #4FF888 #4F6BF8 #F84FC0
split-complementary
#F8DC4F #4FC0F8 #884FF8
monochromatic
#C5A508 #F6D014 #F8DC4F #FAE88A #FDF3C5

Accessibility & contrast

On white

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

On black

15.34
#F8DC4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DC4F
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DC4F#FFFFFF#000000##000000
##F8DC4F1.001.3715.3415.34
#FFFFFF1.371.0021.0021.00
#00000015.3421.001.001.00
##00000015.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F1D73B
Deuteranopia (green-blind)
#F8E057
Tritanopia (blue-blind)
#FFCCBF
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f8dc4f;
/* rgb */ color: rgb(248, 220, 79);
/* oklch */ color: oklch(89.3% 0.158 97.8);
Tailwind
colors: {
  custom: {
    50: '#fee688',
    500: '#f8dc4f',
    950: '#000000',
  },
}
SCSS
$custom: #f8dc4f;
$custom-light: #fee688;
$custom-dark: #000000;
JSON
{
  "hex": "#f8dc4f",
  "rgb": {
    "r": 248,
    "g": 220,
    "b": 79
  },
  "hsl": {
    "h": 50.059,
    "s": 92.35,
    "l": 64.118
  },
  "oklch": {
    "l": 0.89327,
    "c": 0.1575,
    "h": 97.8
  },
  "luminance": 0.71707
}

Semantic roles & 50–950 ramp

primary
#F8DC4F
secondary
#2A43C2
accent
#26E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18150C
muted
#86847F

Preview Lab

Preview with #F8DC4F

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

Preview Lab → · Contrast checker → · Palette generator →

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