#F8DF4F#F8DF4F

#F8DF4F is a very light, vivid yellow. Relative luminance 0.733; OKLCH L 89.9% C 0.160 H 99.2°. Best body text is #000000 at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#F8DF4F
RGBrgb(248, 223, 79)
HSLhsl(51, 92%, 64%)
HSVhsv(51, 68%, 97%)
CMYKcmyk(0%, 10.1%, 68.1%, 2.7%)
CIE-LABlab(88.59, -6.91, 70.48)
CIE-LCHlch(88.59, 70.82, 95.60°)
OKLaboklab(89.93% -0.0257 0.1577)
OKLCHoklch(89.93% 0.16 99.2)
XYZxyz(66.5134, 73.2994, 18.0403)
Luminance0.7330 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DF4F #4F68F8
analogous
#F88B4F #F8DF4F #BDF84F
triadic
#F8DF4F #4FF8DF #DF4FF8
tetradic
#F8DF4F #4FF88B #4F68F8 #F84FBD
square
#F8DF4F #4FF88B #4F68F8 #F84FBD
split-complementary
#F8DF4F #4FBDF8 #8B4FF8
monochromatic
#C5A908 #F6D414 #F8DF4F #FAEA8A #FDF4C5

Accessibility & contrast

On white

1.34
#F8DF4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.66
#F8DF4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DF4F
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DF4F#FFFFFF#000000##000000
##F8DF4F1.001.3415.6615.66
#FFFFFF1.341.0021.0021.00
#00000015.6621.001.001.00
##00000015.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4D93B
Deuteranopia (green-blind)
#FBE257
Tritanopia (blue-blind)
#FFCFC2
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f8df4f;
/* rgb */ color: rgb(248, 223, 79);
/* oklch */ color: oklch(89.9% 0.160 99.2);
Tailwind
colors: {
  custom: {
    50: '#fee888',
    500: '#f8df4f',
    950: '#000000',
  },
}
SCSS
$custom: #f8df4f;
$custom-light: #fee888;
$custom-dark: #000000;
JSON
{
  "hex": "#f8df4f",
  "rgb": {
    "r": 248,
    "g": 223,
    "b": 79
  },
  "hsl": {
    "h": 51.124,
    "s": 92.35,
    "l": 64.118
  },
  "oklch": {
    "l": 0.8993,
    "c": 0.15975,
    "h": 99.2
  },
  "luminance": 0.73296
}

Semantic roles & 50–950 ramp

primary
#F8DF4F
secondary
#2A40C2
accent
#22E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F8DF4F

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

Preview Lab → · Contrast checker → · Palette generator →

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