#F8D878#F8D878

#F8D878 is a very light, vivid yellow. Relative luminance 0.704; OKLCH L 89.0% C 0.121 H 91.4°. Best body text is #000000 at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#F8D878
RGBrgb(248, 216, 120)
HSLhsl(45, 90%, 72%)
HSVhsv(45, 52%, 97%)
CMYKcmyk(0%, 12.9%, 51.6%, 2.7%)
CIE-LABlab(87.21, -0.62, 50.99)
CIE-LCHlch(87.21, 50.99, 90.70°)
OKLaboklab(88.96% -0.0029 0.1211)
OKLCHoklch(88.96% 0.121 91.4)
XYZxyz(66.6599, 70.4273, 27.8483)
Luminance0.7042 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D878 #7898F8
analogous
#F89878 #F8D878 #D8F878
triadic
#F8D878 #78F8D8 #D878F8
tetradic
#F8D878 #78F898 #7898F8 #F878D8
square
#F8D878 #78F898 #7898F8 #F878D8
split-complementary
#F8D878 #78D8F8 #9878F8
monochromatic
#E9B20C #F5C73E #F8D878 #FBE9B2 #FDF7E2

Accessibility & contrast

On white

1.39
#F8D878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.08
#F8D878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D878
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D878#FFFFFF#000000##000000
##F8D8781.001.3915.0815.08
#FFFFFF1.391.0021.0021.00
#00000015.0821.001.001.00
##00000015.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD570
Deuteranopia (green-blind)
#F3DE7C
Tritanopia (blue-blind)
#FFCAC1
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f8d878;
/* rgb */ color: rgb(248, 216, 120);
/* oklch */ color: oklch(89.0% 0.121 91.4);
Tailwind
colors: {
  custom: {
    50: '#fde3a1',
    500: '#f8d878',
    950: '#000000',
  },
}
SCSS
$custom: #f8d878;
$custom-light: #fde3a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d878",
  "rgb": {
    "r": 248,
    "g": 216,
    "b": 120
  },
  "hsl": {
    "h": 45,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.88958,
    "c": 0.12109,
    "h": 91.4
  },
  "luminance": 0.70424
}

Semantic roles & 50–950 ramp

primary
#F8D878
secondary
#4065D4
accent
#39E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8D878

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

Preview Lab → · Contrast checker → · Palette generator →

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