#F8F17A#F8F17A

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

Color values

HEX#F8F17A
RGBrgb(248, 241, 122)
HSLhsl(57, 90%, 73%)
HSVhsv(57, 51%, 97%)
CMYKcmyk(0%, 2.8%, 50.8%, 2.7%)
CIE-LABlab(93.57, -12.97, 57.63)
CIE-LCHlch(93.57, 59.07, 102.68°)
OKLaboklab(94.01% -0.0383 0.1358)
OKLCHoklch(94.01% 0.141 105.8)
XYZxyz(73.6815, 84.2743, 30.7939)
Luminance0.8427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F17A #7A81F8
analogous
#F8B27A #F8F17A #C0F87A
triadic
#F8F17A #7AF8F1 #F17AF8
tetradic
#F8F17A #7AF8B2 #7A81F8 #F87AC0
square
#F8F17A #7AF8B2 #7A81F8 #F87AC0
split-complementary
#F8F17A #7AC0F8 #B27AF8
monochromatic
#EBDF0C #F5EB40 #F8F17A #FBF7B4 #FDFCE2

Accessibility & contrast

On white

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

On black

17.85
#F8F17A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F17A
17.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F17A#FFFFFF#000000##000000
##F8F17A1.001.1817.8517.85
#FFFFFF1.181.0021.0021.00
#00000017.8521.001.001.00
##00000017.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE96F
Deuteranopia (green-blind)
#FFEF80
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8f17a;
/* rgb */ color: rgb(248, 241, 122);
/* oklch */ color: oklch(94.0% 0.141 105.8);
Tailwind
colors: {
  custom: {
    50: '#fdf5a3',
    500: '#f8f17a',
    950: '#000000',
  },
}
SCSS
$custom: #f8f17a;
$custom-light: #fdf5a3;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f17a",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 122
  },
  "hsl": {
    "h": 56.667,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.94007,
    "c": 0.14105,
    "h": 105.8
  },
  "luminance": 0.84272
}

Semantic roles & 50–950 ramp

primary
#F8F17A
secondary
#424AD4
accent
#0DE600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F17A

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

Preview Lab → · Contrast checker → · Palette generator →

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