#F8F17C#F8F17C

#F8F17C is a very light, vivid yellow. Relative luminance 0.843; OKLCH L 94.0% C 0.139 H 105.7°. Best body text is #000000 at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#F8F17C
RGBrgb(248, 241, 124)
HSLhsl(57, 90%, 73%)
HSVhsv(57, 50%, 97%)
CMYKcmyk(0%, 2.8%, 50%, 2.7%)
CIE-LABlab(93.59, -12.80, 56.74)
CIE-LCHlch(93.59, 58.17, 102.71°)
OKLaboklab(94.03% -0.0377 0.134)
OKLCHoklch(94.03% 0.139 105.7)
XYZxyz(73.8067, 84.3244, 31.4532)
Luminance0.8432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F17C #7C83F8
analogous
#F8B37C #F8F17C #C1F87C
triadic
#F8F17C #7CF8F1 #F17CF8
tetradic
#F8F17C #7CF8B3 #7C83F8 #F87CC1
square
#F8F17C #7CF8B3 #7C83F8 #F87CC1
split-complementary
#F8F17C #7CC1F8 #B37CF8
monochromatic
#EDE00D #F5EB42 #F8F17C #FBF7B6 #FDFCE2

Accessibility & contrast

On white

1.18
#F8F17C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.86
#F8F17C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F17C
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F17C#FFFFFF#000000##000000
##F8F17C1.001.1817.8617.86
#FFFFFF1.181.0021.0021.00
#00000017.8621.001.001.00
##00000017.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA71
Deuteranopia (green-blind)
#FFEF82
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f8f17c;
/* rgb */ color: rgb(248, 241, 124);
/* oklch */ color: oklch(94.0% 0.139 105.7);
Tailwind
colors: {
  custom: {
    50: '#fdf5a5',
    500: '#f8f17c',
    950: '#000000',
  },
}
SCSS
$custom: #f8f17c;
$custom-light: #fdf5a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f17c",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 124
  },
  "hsl": {
    "h": 56.613,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.94031,
    "c": 0.13918,
    "h": 105.7
  },
  "luminance": 0.84322
}

Semantic roles & 50–950 ramp

primary
#F8F17C
secondary
#444CD4
accent
#0DE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F17C

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

Preview Lab → · Contrast checker → · Palette generator →

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