#F8F781#F8F781

#F8F781 is a very light, vivid yellow. Relative luminance 0.881; OKLCH L 95.3% C 0.141 H 108.4°. Best body text is #000000 at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#F8F781
RGBrgb(248, 247, 129)
HSLhsl(59, 89%, 74%)
HSVhsv(59, 48%, 97%)
CMYKcmyk(0%, 0.4%, 48%, 2.7%)
CIE-LABlab(95.19, -15.31, 56.33)
CIE-LCHlch(95.19, 58.38, 105.20°)
OKLaboklab(95.32% -0.0443 0.1335)
OKLCHoklch(95.32% 0.141 108.4)
XYZxyz(75.9363, 88.0648, 33.7627)
Luminance0.8806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F781 #8182F8
analogous
#F8BC81 #F8F781 #BEF881
triadic
#F8F781 #81F8F7 #F781F8
tetradic
#F8F781 #81F8BC #8182F8 #F881BE
square
#F8F781 #81F8BC #8182F8 #F881BE
split-complementary
#F8F781 #81BEF8 #BC81F8
monochromatic
#F1EF0D #F5F347 #F8F781 #FBFBBB #FDFDE2

Accessibility & contrast

On white

1.13
#F8F781 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.61
#F8F781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F781
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F781#FFFFFF#000000##000000
##F8F7811.001.1318.6118.61
#FFFFFF1.131.0021.0021.00
#00000018.6121.001.001.00
##00000018.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF76
Deuteranopia (green-blind)
#FFF387
Tritanopia (blue-blind)
#FFEADC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f8f781;
/* rgb */ color: rgb(248, 247, 129);
/* oklch */ color: oklch(95.3% 0.141 108.4);
Tailwind
colors: {
  custom: {
    50: '#fdf9a8',
    500: '#f8f781',
    950: '#000000',
  },
}
SCSS
$custom: #f8f781;
$custom-light: #fdf9a8;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f781",
  "rgb": {
    "r": 248,
    "g": 247,
    "b": 129
  },
  "hsl": {
    "h": 59.496,
    "s": 89.474,
    "l": 73.922
  },
  "oklch": {
    "l": 0.9532,
    "c": 0.14068,
    "h": 108.4
  },
  "luminance": 0.88063
}

Semantic roles & 50–950 ramp

primary
#F8F781
secondary
#4849D5
accent
#02E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F781

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

Preview Lab → · Contrast checker → · Palette generator →

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