#F8F97A#F8F97A

#F8F97A is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.6% C 0.149 H 109.3°. Best body text is #000000 at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#F8F97A
RGBrgb(248, 249, 122)
HSLhsl(60, 91%, 73%)
HSVhsv(60, 51%, 98%)
CMYKcmyk(0.4%, 0%, 51%, 2.4%)
CIE-LABlab(95.63, -16.87, 60.05)
CIE-LCHlch(95.63, 62.37, 105.69°)
OKLaboklab(95.65% -0.0494 0.141)
OKLCHoklch(95.65% 0.149 109.3)
XYZxyz(76.1017, 89.1148, 31.6006)
Luminance0.8911 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F97A #7B7AF9
analogous
#F9BA7A #F8F97A #B9F97A
triadic
#F8F97A #7AF8F9 #F97AF8
tetradic
#F8F97A #7AF9BA #7B7AF9 #F97AB9
square
#F8F97A #7AF9BA #7B7AF9 #F97AB9
split-complementary
#F8F97A #7AB9F9 #BA7AF9
monochromatic
#ECEE0B #F5F63F #F8F97A #FBFCB5 #FDFEE2

Accessibility & contrast

On white

1.12
#F8F97A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.82
#F8F97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F97A
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F97A#FFFFFF#000000##000000
##F8F97A1.001.1218.8218.82
#FFFFFF1.121.0021.0021.00
#00000018.8221.001.001.00
##00000018.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06E
Deuteranopia (green-blind)
#FFF581
Tritanopia (blue-blind)
#FFECDC
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f97a;
/* rgb */ color: rgb(248, 249, 122);
/* oklch */ color: oklch(95.6% 0.149 109.3);
Tailwind
colors: {
  custom: {
    50: '#fdfba4',
    500: '#f8f97a',
    950: '#000000',
  },
}
SCSS
$custom: #f8f97a;
$custom-light: #fdfba4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f97a",
  "rgb": {
    "r": 248,
    "g": 249,
    "b": 122
  },
  "hsl": {
    "h": 60.472,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.95646,
    "c": 0.14941,
    "h": 109.3
  },
  "luminance": 0.89113
}

Semantic roles & 50–950 ramp

primary
#F8F97A
secondary
#4342D5
accent
#00E602
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F97A

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

Preview Lab → · Contrast checker → · Palette generator →

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