#F8F97B#F8F97B

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

Color values

HEX#F8F97B
RGBrgb(248, 249, 123)
HSLhsl(60, 91%, 73%)
HSVhsv(60, 51%, 98%)
CMYKcmyk(0.4%, 0%, 50.6%, 2.4%)
CIE-LABlab(95.64, -16.79, 59.61)
CIE-LCHlch(95.64, 61.93, 105.73°)
OKLaboklab(95.66% -0.0491 0.1401)
OKLCHoklch(95.66% 0.148 109.3)
XYZxyz(76.1640, 89.1397, 31.9286)
Luminance0.8914 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F97B #7C7BF9
analogous
#F9BB7B #F8F97B #B9F97B
triadic
#F8F97B #7BF8F9 #F97BF8
tetradic
#F8F97B #7BF9BB #7C7BF9 #F97BB9
square
#F8F97B #7BF9BB #7C7BF9 #F97BB9
split-complementary
#F8F97B #7BB9F9 #BB7BF9
monochromatic
#EDEF0B #F5F640 #F8F97B #FBFCB6 #FDFEE2

Accessibility & contrast

On white

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

On black

18.83
#F8F97B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F97B
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F97B#FFFFFF#000000##000000
##F8F97B1.001.1218.8318.83
#FFFFFF1.121.0021.0021.00
#00000018.8321.001.001.00
##00000018.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF06F
Deuteranopia (green-blind)
#FFF582
Tritanopia (blue-blind)
#FFECDD
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f97b;
/* rgb */ color: rgb(248, 249, 123);
/* oklch */ color: oklch(95.7% 0.148 109.3);
Tailwind
colors: {
  custom: {
    50: '#fdfba4',
    500: '#f8f97b',
    950: '#000000',
  },
}
SCSS
$custom: #f8f97b;
$custom-light: #fdfba4;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f97b",
  "rgb": {
    "r": 248,
    "g": 249,
    "b": 123
  },
  "hsl": {
    "h": 60.476,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.95658,
    "c": 0.14849,
    "h": 109.3
  },
  "luminance": 0.89138
}

Semantic roles & 50–950 ramp

primary
#F8F97B
secondary
#4443D6
accent
#00E602
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F97B

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

Preview Lab → · Contrast checker → · Palette generator →

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