#F8DF5F#F8DF5F

#F8DF5F is a very light, vivid yellow. Relative luminance 0.736; OKLCH L 90.1% C 0.148 H 98.3°. Best body text is #000000 at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#F8DF5F
RGBrgb(248, 223, 95)
HSLhsl(50, 92%, 67%)
HSVhsv(50, 62%, 97%)
CMYKcmyk(0%, 10.1%, 61.7%, 2.7%)
CIE-LABlab(88.71, -6.00, 64.11)
CIE-LCHlch(88.71, 64.39, 95.34°)
OKLaboklab(90.07% -0.0213 0.1466)
OKLCHoklch(90.07% 0.148 98.3)
XYZxyz(67.1674, 73.5611, 21.4850)
Luminance0.7356 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DF5F #5F78F8
analogous
#F8935F #F8DF5F #C5F85F
triadic
#F8DF5F #5FF8DF #DF5FF8
tetradic
#F8DF5F #5FF893 #5F78F8 #F85FC5
square
#F8DF5F #5FF893 #5F78F8 #F85FC5
split-complementary
#F8DF5F #5FC5F8 #935FF8
monochromatic
#D3B209 #F5D324 #F8DF5F #FBEB9A #FDF6D4

Accessibility & contrast

On white

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

On black

15.71
#F8DF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DF5F
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DF5F#FFFFFF#000000##000000
##F8DF5F1.001.3415.7115.71
#FFFFFF1.341.0021.0021.00
#00000015.7121.001.001.00
##00000015.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DA50
Deuteranopia (green-blind)
#FAE365
Tritanopia (blue-blind)
#FFD0C4
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f8df5f;
/* rgb */ color: rgb(248, 223, 95);
/* oklch */ color: oklch(90.1% 0.148 98.3);
Tailwind
colors: {
  custom: {
    50: '#fee891',
    500: '#f8df5f',
    950: '#000000',
  },
}
SCSS
$custom: #f8df5f;
$custom-light: #fee891;
$custom-dark: #000000;
JSON
{
  "hex": "#f8df5f",
  "rgb": {
    "r": 248,
    "g": 223,
    "b": 95
  },
  "hsl": {
    "h": 50.196,
    "s": 91.617,
    "l": 67.255
  },
  "oklch": {
    "l": 0.90069,
    "c": 0.14814,
    "h": 98.3
  },
  "luminance": 0.73558
}

Semantic roles & 50–950 ramp

primary
#F8DF5F
secondary
#2D47CE
accent
#26E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F8DF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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