#F8E174#F8E174

#F8E174 is a very light, vivid yellow. Relative luminance 0.751; OKLCH L 90.7% C 0.132 H 97.6°. Best body text is #000000 at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#F8E174
RGBrgb(248, 225, 116)
HSLhsl(50, 90%, 71%)
HSVhsv(50, 53%, 97%)
CMYKcmyk(0%, 9.3%, 53.2%, 2.7%)
CIE-LABlab(89.43, -5.50, 55.52)
CIE-LCHlch(89.43, 55.79, 95.66°)
OKLaboklab(90.7% -0.0175 0.1306)
OKLCHoklch(90.7% 0.132 97.6)
XYZxyz(68.7914, 75.0706, 27.3861)
Luminance0.7507 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8E174 #748BF8
analogous
#F89F74 #F8E174 #CDF874
triadic
#F8E174 #74F8E1 #E174F8
tetradic
#F8E174 #74F89F #748BF8 #F874CD
square
#F8E174 #74F89F #748BF8 #F874CD
split-complementary
#F8E174 #74CDF8 #9F74F8
monochromatic
#E6C00C #F5D43A #F8E174 #FBEEAE #FEF9E2

Accessibility & contrast

On white

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

On black

16.01
#F8E174 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8E174
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8E174#FFFFFF#000000##000000
##F8E1741.001.3116.0116.01
#FFFFFF1.311.0021.0021.00
#00000016.0121.001.001.00
##00000016.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#F3DC6A
Deuteranopia (green-blind)
#FAE479
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #f8e174;
/* rgb */ color: rgb(248, 225, 116);
/* oklch */ color: oklch(90.7% 0.132 97.6);
Tailwind
colors: {
  custom: {
    50: '#fdea9f',
    500: '#f8e174',
    950: '#000000',
  },
}
SCSS
$custom: #f8e174;
$custom-light: #fdea9f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8e174",
  "rgb": {
    "r": 248,
    "g": 225,
    "b": 116
  },
  "hsl": {
    "h": 49.545,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.90698,
    "c": 0.13177,
    "h": 97.6
  },
  "luminance": 0.75068
}

Semantic roles & 50–950 ramp

primary
#F8E174
secondary
#3D57D3
accent
#28E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F8E174

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

Preview Lab → · Contrast checker → · Palette generator →

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