#F8DE4F#F8DE4F

#F8DE4F is a very light, vivid yellow. Relative luminance 0.728; OKLCH L 89.7% C 0.159 H 98.8°. Best body text is #000000 at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#F8DE4F
RGBrgb(248, 222, 79)
HSLhsl(51, 92%, 64%)
HSVhsv(51, 68%, 97%)
CMYKcmyk(0%, 10.5%, 68.1%, 2.7%)
CIE-LABlab(88.34, -6.41, 70.22)
CIE-LCHlch(88.34, 70.52, 95.22°)
OKLaboklab(89.73% -0.0242 0.1571)
OKLCHoklch(89.73% 0.159 98.8)
XYZxyz(66.2470, 72.7667, 17.9515)
Luminance0.7276 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DE4F #4F69F8
analogous
#F88A4F #F8DE4F #BEF84F
triadic
#F8DE4F #4FF8DE #DE4FF8
tetradic
#F8DE4F #4FF88A #4F69F8 #F84FBE
square
#F8DE4F #4FF88A #4F69F8 #F84FBE
split-complementary
#F8DE4F #4FBEF8 #8A4FF8
monochromatic
#C5A808 #F6D314 #F8DE4F #FAE98A #FDF4C5

Accessibility & contrast

On white

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

On black

15.55
#F8DE4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DE4F
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DE4F#FFFFFF#000000##000000
##F8DE4F1.001.3515.5515.55
#FFFFFF1.351.0021.0021.00
#00000015.5521.001.001.00
##00000015.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3D83B
Deuteranopia (green-blind)
#FAE257
Tritanopia (blue-blind)
#FFCEC1
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f8de4f;
/* rgb */ color: rgb(248, 222, 79);
/* oklch */ color: oklch(89.7% 0.159 98.8);
Tailwind
colors: {
  custom: {
    50: '#fee788',
    500: '#f8de4f',
    950: '#000000',
  },
}
SCSS
$custom: #f8de4f;
$custom-light: #fee788;
$custom-dark: #000000;
JSON
{
  "hex": "#f8de4f",
  "rgb": {
    "r": 248,
    "g": 222,
    "b": 79
  },
  "hsl": {
    "h": 50.769,
    "s": 92.35,
    "l": 64.118
  },
  "oklch": {
    "l": 0.89729,
    "c": 0.15899,
    "h": 98.8
  },
  "luminance": 0.72764
}

Semantic roles & 50–950 ramp

primary
#F8DE4F
secondary
#2A41C2
accent
#23E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160C
muted
#86847F

Preview Lab

Preview with #F8DE4F

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

Preview Lab → · Contrast checker → · Palette generator →

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