#F8E178#F8E178

#F8E178 is a very light, vivid yellow. Relative luminance 0.752; OKLCH L 90.7% C 0.128 H 97.2°. Best body text is #000000 at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#F8E178
RGBrgb(248, 225, 120)
HSLhsl(49, 90%, 72%)
HSVhsv(49, 52%, 97%)
CMYKcmyk(0%, 9.3%, 51.6%, 2.7%)
CIE-LABlab(89.47, -5.18, 53.70)
CIE-LCHlch(89.47, 53.95, 95.51°)
OKLaboklab(90.75% -0.0161 0.127)
OKLCHoklch(90.75% 0.128 97.2)
XYZxyz(69.0291, 75.1657, 28.6380)
Luminance0.7516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E178 #788FF8
analogous
#F8A178 #F8E178 #CFF878
triadic
#F8E178 #78F8E1 #E178F8
tetradic
#F8E178 #78F8A1 #788FF8 #F878CF
square
#F8E178 #78F8A1 #788FF8 #F878CF
split-complementary
#F8E178 #78CFF8 #A178F8
monochromatic
#E9C20C #F5D43E #F8E178 #FBEEB2 #FDF9E2

Accessibility & contrast

On white

1.31
#F8E178 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.03
#F8E178 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E178
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E178#FFFFFF#000000##000000
##F8E1781.001.3116.0316.03
#FFFFFF1.311.0021.0021.00
#00000016.0321.001.001.00
##00000016.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC6F
Deuteranopia (green-blind)
#F9E47C
Tritanopia (blue-blind)
#FFD4C9
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e178;
/* rgb */ color: rgb(248, 225, 120);
/* oklch */ color: oklch(90.7% 0.128 97.2);
Tailwind
colors: {
  custom: {
    50: '#fdeaa1',
    500: '#f8e178',
    950: '#000000',
  },
}
SCSS
$custom: #f8e178;
$custom-light: #fdeaa1;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e178",
  "rgb": {
    "r": 248,
    "g": 225,
    "b": 120
  },
  "hsl": {
    "h": 49.219,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.90748,
    "c": 0.12802,
    "h": 97.2
  },
  "luminance": 0.75163
}

Semantic roles & 50–950 ramp

primary
#F8E178
secondary
#405BD4
accent
#29E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E178

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

Preview Lab → · Contrast checker → · Palette generator →

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