#F8F874#F8F874

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

Color values

HEX#F8F874
RGBrgb(248, 248, 116)
HSLhsl(60, 90%, 71%)
HSVhsv(60, 53%, 97%)
CMYKcmyk(0%, 0%, 53.2%, 2.7%)
CIE-LABlab(95.31, -16.86, 62.35)
CIE-LCHlch(95.31, 64.59, 105.13°)
OKLaboklab(95.37% -0.05 0.1454)
OKLCHoklch(95.37% 0.154 109)
XYZxyz(75.4331, 88.3541, 29.6000)
Luminance0.8835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F874 #7474F8
analogous
#F8B674 #F8F874 #B6F874
triadic
#F8F874 #74F8F8 #F874F8
tetradic
#F8F874 #74F8B6 #7474F8 #F874B6
square
#F8F874 #74F8B6 #7474F8 #F874B6
split-complementary
#F8F874 #74B6F8 #B674F8
monochromatic
#E6E60C #F5F53A #F8F874 #FBFBAE #FEFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F8F874#FFFFFF#000000##000000
##F8F8741.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)
#FFEF67
Deuteranopia (green-blind)
#FFF47B
Tritanopia (blue-blind)
#FFEADB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f8f874;
/* rgb */ color: rgb(248, 248, 116);
/* oklch */ color: oklch(95.4% 0.154 109.0);
Tailwind
colors: {
  custom: {
    50: '#fdfaa0',
    500: '#f8f874',
    950: '#000000',
  },
}
SCSS
$custom: #f8f874;
$custom-light: #fdfaa0;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f874",
  "rgb": {
    "r": 248,
    "g": 248,
    "b": 116
  },
  "hsl": {
    "h": 60,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.95373,
    "c": 0.15374,
    "h": 109
  },
  "luminance": 0.88352
}

Semantic roles & 50–950 ramp

primary
#F8F874
secondary
#3D3DD3
accent
#00E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F874

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

Preview Lab → · Contrast checker → · Palette generator →

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