#F8DF5C#F8DF5C

#F8DF5C is a very light, vivid yellow. Relative luminance 0.735; OKLCH L 90.0% C 0.150 H 98.5°. Best body text is #000000 at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#F8DF5C
RGBrgb(248, 223, 92)
HSLhsl(50, 92%, 67%)
HSVhsv(50, 63%, 97%)
CMYKcmyk(0%, 10.1%, 62.9%, 2.7%)
CIE-LABlab(88.69, -6.18, 65.35)
CIE-LCHlch(88.69, 65.64, 95.41°)
OKLaboklab(90.04% -0.0222 0.1488)
OKLCHoklch(90.04% 0.15 98.5)
XYZxyz(67.0337, 73.5076, 20.7806)
Luminance0.7350 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8DF5C #5C75F8
analogous
#F8915C #F8DF5C #C3F85C
triadic
#F8DF5C #5CF8DF #DF5CF8
tetradic
#F8DF5C #5CF891 #5C75F8 #F85CC3
square
#F8DF5C #5CF891 #5C75F8 #F85CC3
split-complementary
#F8DF5C #5CC3F8 #915CF8
monochromatic
#D1B109 #F5D321 #F8DF5C #FBEB97 #FDF6D1

Accessibility & contrast

On white

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

On black

15.70
#F8DF5C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8DF5C
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8DF5C#FFFFFF#000000##000000
##F8DF5C1.001.3415.7015.70
#FFFFFF1.341.0021.0021.00
#00000015.7021.001.001.00
##00000015.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DA4D
Deuteranopia (green-blind)
#FAE263
Tritanopia (blue-blind)
#FFD0C3
Achromatopsia (no color)
#DFDFDF

Design tokens & code

CSS
--color: #f8df5c;
/* rgb */ color: rgb(248, 223, 92);
/* oklch */ color: oklch(90.0% 0.150 98.5);
Tailwind
colors: {
  custom: {
    50: '#fee88f',
    500: '#f8df5c',
    950: '#000000',
  },
}
SCSS
$custom: #f8df5c;
$custom-light: #fee88f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8df5c",
  "rgb": {
    "r": 248,
    "g": 223,
    "b": 92
  },
  "hsl": {
    "h": 50.385,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.90041,
    "c": 0.15046,
    "h": 98.5
  },
  "luminance": 0.73505
}

Semantic roles & 50–950 ramp

primary
#F8DF5C
secondary
#2C46CC
accent
#25E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F

Preview Lab

Preview with #F8DF5C

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

Preview Lab → · Contrast checker → · Palette generator →

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