#F8E780#F8E780

#F8E780 is a very light, vivid yellow. Relative luminance 0.787; OKLCH L 92.1% C 0.126 H 100.1°. Best body text is #000000 at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#F8E780
RGBrgb(248, 231, 128)
HSLhsl(52, 90%, 74%)
HSVhsv(52, 48%, 97%)
CMYKcmyk(0%, 6.9%, 48.4%, 2.7%)
CIE-LABlab(91.08, -7.50, 51.86)
CIE-LCHlch(91.08, 52.40, 98.23°)
OKLaboklab(92.06% -0.022 0.1236)
OKLCHoklch(92.06% 0.126 100.1)
XYZxyz(71.1856, 78.6693, 31.8528)
Luminance0.7867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E780 #8091F8
analogous
#F8AB80 #F8E780 #CDF880
triadic
#F8E780 #80F8E7 #E780F8
tetradic
#F8E780 #80F8AB #8091F8 #F880CD
square
#F8E780 #80F8AB #8091F8 #F880CD
split-complementary
#F8E780 #80CDF8 #AB80F8
monochromatic
#F0D00D #F5DC46 #F8E780 #FBF2BA #FDFAE2

Accessibility & contrast

On white

1.25
#F8E780 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.73
#F8E780 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E780
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E780#FFFFFF#000000##000000
##F8E7801.001.2516.7316.73
#FFFFFF1.251.0021.0021.00
#00000016.7321.001.001.00
##00000016.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E277
Deuteranopia (green-blind)
#FDE884
Tritanopia (blue-blind)
#FFDACF
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f8e780;
/* rgb */ color: rgb(248, 231, 128);
/* oklch */ color: oklch(92.1% 0.126 100.1);
Tailwind
colors: {
  custom: {
    50: '#fdeea7',
    500: '#f8e780',
    950: '#000000',
  },
}
SCSS
$custom: #f8e780;
$custom-light: #fdeea7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e780",
  "rgb": {
    "r": 248,
    "g": 231,
    "b": 128
  },
  "hsl": {
    "h": 51.5,
    "s": 89.552,
    "l": 73.725
  },
  "oklch": {
    "l": 0.92056,
    "c": 0.12556,
    "h": 100.1
  },
  "luminance": 0.78667
}

Semantic roles & 50–950 ramp

primary
#F8E780
secondary
#475BD5
accent
#21E600
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#181610
muted
#868480

Preview Lab

Preview with #F8E780

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

Preview Lab → · Contrast checker → · Palette generator →

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