#F8F877#F8F877

#F8F877 is a very light, vivid yellow. Relative luminance 0.884; OKLCH L 95.4% C 0.151 H 109.0°. Best body text is #000000 at 18.68:1 contrast (WCAG AA passes).

Color values

HEX#F8F877
RGBrgb(248, 248, 119)
HSLhsl(60, 90%, 72%)
HSVhsv(60, 52%, 97%)
CMYKcmyk(0%, 0%, 52%, 2.7%)
CIE-LABlab(95.34, -16.62, 61.06)
CIE-LCHlch(95.34, 63.28, 105.23°)
OKLaboklab(95.41% -0.0491 0.1429)
OKLCHoklch(95.41% 0.151 109)
XYZxyz(75.6105, 88.4251, 30.5340)
Luminance0.8842 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F877 #7777F8
analogous
#F8B877 #F8F877 #B8F877
triadic
#F8F877 #77F8F8 #F877F8
tetradic
#F8F877 #77F8B8 #7777F8 #F877B8
square
#F8F877 #77F8B8 #7777F8 #F877B8
split-complementary
#F8F877 #77B8F8 #B877F8
monochromatic
#E9E90C #F5F53D #F8F877 #FBFBB1 #FEFEE2

Accessibility & contrast

On white

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

On black

18.68
#F8F877 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F877
18.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F877#FFFFFF#000000##000000
##F8F8771.001.1218.6818.68
#FFFFFF1.121.0021.0021.00
#00000018.6821.001.001.00
##00000018.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF6A
Deuteranopia (green-blind)
#FFF47E
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #f8f877;
/* rgb */ color: rgb(248, 248, 119);
/* oklch */ color: oklch(95.4% 0.151 109.0);
Tailwind
colors: {
  custom: {
    50: '#fdfaa2',
    500: '#f8f877',
    950: '#000000',
  },
}
SCSS
$custom: #f8f877;
$custom-light: #fdfaa2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f877",
  "rgb": {
    "r": 248,
    "g": 248,
    "b": 119
  },
  "hsl": {
    "h": 60,
    "s": 90.21,
    "l": 71.961
  },
  "oklch": {
    "l": 0.95406,
    "c": 0.15107,
    "h": 109
  },
  "luminance": 0.88423
}

Semantic roles & 50–950 ramp

primary
#F8F877
secondary
#3F3FD4
accent
#00E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F877

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

Preview Lab → · Contrast checker → · Palette generator →

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