#F8E56C#F8E56C

#F8E56C is a very light, vivid yellow. Relative luminance 0.771; OKLCH L 91.4% C 0.142 H 100.5°. Best body text is #000000 at 16.42:1 contrast (WCAG AA passes).

Color values

HEX#F8E56C
RGBrgb(248, 229, 108)
HSLhsl(52, 91%, 70%)
HSVhsv(52, 56%, 97%)
CMYKcmyk(0%, 7.7%, 56.5%, 2.7%)
CIE-LABlab(90.36, -8.12, 60.25)
CIE-LCHlch(90.36, 60.80, 97.67°)
OKLaboklab(91.41% -0.0259 0.14)
OKLCHoklch(91.41% 0.142 100.5)
XYZxyz(69.4400, 77.0805, 25.4047)
Luminance0.7708 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E56C #6C7FF8
analogous
#F89F6C #F8E56C #C5F86C
triadic
#F8E56C #6CF8E5 #E56CF8
tetradic
#F8E56C #6CF89F #6C7FF8 #F86CC5
square
#F8E56C #6CF89F #6C7FF8 #F86CC5
split-complementary
#F8E56C #6CC5F8 #9F6CF8
monochromatic
#DFC20B #F5DB32 #F8E56C #FBEFA6 #FEFAE1

Accessibility & contrast

On white

1.28
#F8E56C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.42
#F8E56C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E56C
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E56C#FFFFFF#000000##000000
##F8E56C1.001.2816.4216.42
#FFFFFF1.281.0021.0021.00
#00000016.4221.001.001.00
##00000016.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8DF60
Deuteranopia (green-blind)
#FDE772
Tritanopia (blue-blind)
#FFD7CA
Achromatopsia (no color)
#E3E3E3

Design tokens & code

CSS
--color: #f8e56c;
/* rgb */ color: rgb(248, 229, 108);
/* oklch */ color: oklch(91.4% 0.142 100.5);
Tailwind
colors: {
  custom: {
    50: '#fdec9a',
    500: '#f8e56c',
    950: '#000000',
  },
}
SCSS
$custom: #f8e56c;
$custom-light: #fdec9a;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e56c",
  "rgb": {
    "r": 248,
    "g": 229,
    "b": 108
  },
  "hsl": {
    "h": 51.857,
    "s": 90.909,
    "l": 69.804
  },
  "oklch": {
    "l": 0.9141,
    "c": 0.14236,
    "h": 100.5
  },
  "luminance": 0.77078
}

Semantic roles & 50–950 ramp

primary
#F8E56C
secondary
#364BD2
accent
#1FE600
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160E
muted
#86847F

Preview Lab

Preview with #F8E56C

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

Preview Lab → · Contrast checker → · Palette generator →

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