#F8F78B#F8F78B

#F8F78B is a very light, vivid yellow. Relative luminance 0.883; OKLCH L 95.5% C 0.131 H 108.2°. Best body text is #000000 at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#F8F78B
RGBrgb(248, 247, 139)
HSLhsl(59, 89%, 76%)
HSVhsv(59, 44%, 97%)
CMYKcmyk(0%, 0.4%, 44%, 2.7%)
CIE-LABlab(95.31, -14.40, 51.79)
CIE-LCHlch(95.31, 53.76, 105.53°)
OKLaboklab(95.45% -0.0408 0.1243)
OKLCHoklch(95.45% 0.131 108.2)
XYZxyz(76.6338, 88.3438, 37.4362)
Luminance0.8834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F78B #8B8CF8
analogous
#F8C08B #F8F78B #C2F88B
triadic
#F8F78B #8BF8F7 #F78BF8
tetradic
#F8F78B #8BF8C0 #8B8CF8 #F88BC2
square
#F8F78B #8BF8C0 #8B8CF8 #F88BC2
split-complementary
#F8F78B #8BC2F8 #C08BF8
monochromatic
#F1EF18 #F5F351 #F8F78B #FBFBC5 #FDFDE2

Accessibility & contrast

On white

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

On black

18.67
#F8F78B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F78B
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F78B#FFFFFF#000000##000000
##F8F78B1.001.1218.6718.67
#FFFFFF1.121.0021.0021.00
#00000018.6721.001.001.00
##00000018.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF82
Deuteranopia (green-blind)
#FFF490
Tritanopia (blue-blind)
#FFEBDD
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f8f78b;
/* rgb */ color: rgb(248, 247, 139);
/* oklch */ color: oklch(95.5% 0.131 108.2);
Tailwind
colors: {
  custom: {
    50: '#fcf9af',
    500: '#f8f78b',
    950: '#000000',
  },
}
SCSS
$custom: #f8f78b;
$custom-light: #fcf9af;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f78b",
  "rgb": {
    "r": 248,
    "g": 247,
    "b": 139
  },
  "hsl": {
    "h": 59.45,
    "s": 88.618,
    "l": 75.882
  },
  "oklch": {
    "l": 0.95451,
    "c": 0.13078,
    "h": 108.2
  },
  "luminance": 0.88342
}

Semantic roles & 50–950 ramp

primary
#F8F78B
secondary
#5152D6
accent
#02E500
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F78B

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

Preview Lab → · Contrast checker → · Palette generator →

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