#F8F17D#F8F17D

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

Color values

HEX#F8F17D
RGBrgb(248, 241, 125)
HSLhsl(57, 90%, 73%)
HSVhsv(57, 50%, 97%)
CMYKcmyk(0%, 2.8%, 49.6%, 2.7%)
CIE-LABlab(93.60, -12.72, 56.29)
CIE-LCHlch(93.60, 57.71, 102.73°)
OKLaboklab(94.04% -0.0373 0.1331)
OKLCHoklch(94.04% 0.138 105.7)
XYZxyz(73.8703, 84.3498, 31.7880)
Luminance0.8435 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F17D #7D84F8
analogous
#F8B37D #F8F17D #C2F87D
triadic
#F8F17D #7DF8F1 #F17DF8
tetradic
#F8F17D #7DF8B3 #7D84F8 #F87DC2
square
#F8F17D #7DF8B3 #7D84F8 #F87DC2
split-complementary
#F8F17D #7DC2F8 #B37DF8
monochromatic
#EEE10D #F5EB43 #F8F17D #FBF7B7 #FDFCE2

Accessibility & contrast

On white

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

On black

17.87
#F8F17D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F17D
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F17D#FFFFFF#000000##000000
##F8F17D1.001.1817.8717.87
#FFFFFF1.181.0021.0021.00
#00000017.8721.001.001.00
##00000017.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8f17d;
/* rgb */ color: rgb(248, 241, 125);
/* oklch */ color: oklch(94.0% 0.138 105.7);
Tailwind
colors: {
  custom: {
    50: '#fdf5a5',
    500: '#f8f17d',
    950: '#000000',
  },
}
SCSS
$custom: #f8f17d;
$custom-light: #fdf5a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f17d",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 125
  },
  "hsl": {
    "h": 56.585,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.94043,
    "c": 0.13822,
    "h": 105.7
  },
  "luminance": 0.84348
}

Semantic roles & 50–950 ramp

primary
#F8F17D
secondary
#454DD4
accent
#0DE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F17D

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

Preview Lab → · Contrast checker → · Palette generator →

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