#F8E17C#F8E17C

#F8E17C is a very light, vivid yellow. Relative luminance 0.753; OKLCH L 90.8% C 0.124 H 96.8°. Best body text is #000000 at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#F8E17C
RGBrgb(248, 225, 124)
HSLhsl(49, 90%, 73%)
HSVhsv(49, 50%, 97%)
CMYKcmyk(0%, 9.3%, 50%, 2.7%)
CIE-LABlab(89.52, -4.84, 51.87)
CIE-LCHlch(89.52, 52.09, 95.33°)
OKLaboklab(90.8% -0.0147 0.1233)
OKLCHoklch(90.8% 0.124 96.8)
XYZxyz(69.2769, 75.2649, 29.9433)
Luminance0.7526 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E17C #7C93F8
analogous
#F8A37C #F8E17C #D1F87C
triadic
#F8E17C #7CF8E1 #E17CF8
tetradic
#F8E17C #7CF8A3 #7C93F8 #F87CD1
square
#F8E17C #7CF8A3 #7C93F8 #F87CD1
split-complementary
#F8E17C #7CD1F8 #A37CF8
monochromatic
#EDC30D #F5D442 #F8E17C #FBEEB6 #FDF8E2

Accessibility & contrast

On white

1.31
#F8E17C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.05
#F8E17C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E17C
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E17C#FFFFFF#000000##000000
##F8E17C1.001.3116.0516.05
#FFFFFF1.311.0021.0021.00
#00000016.0521.001.001.00
##00000016.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DD73
Deuteranopia (green-blind)
#F9E480
Tritanopia (blue-blind)
#FFD4C9
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e17c;
/* rgb */ color: rgb(248, 225, 124);
/* oklch */ color: oklch(90.8% 0.124 96.8);
Tailwind
colors: {
  custom: {
    50: '#fdeaa4',
    500: '#f8e17c',
    950: '#000000',
  },
}
SCSS
$custom: #f8e17c;
$custom-light: #fdeaa4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e17c",
  "rgb": {
    "r": 248,
    "g": 225,
    "b": 124
  },
  "hsl": {
    "h": 48.871,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.90799,
    "c": 0.12419,
    "h": 96.8
  },
  "luminance": 0.75262
}

Semantic roles & 50–950 ramp

primary
#F8E17C
secondary
#445FD4
accent
#2BE600
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E17C

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

Preview Lab → · Contrast checker → · Palette generator →

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