#F8F174#F8F174

#F8F174 is a very light, vivid yellow. Relative luminance 0.841; OKLCH L 93.9% C 0.147 H 106.0°. Best body text is #000000 at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#F8F174
RGBrgb(248, 241, 116)
HSLhsl(57, 90%, 71%)
HSVhsv(57, 53%, 97%)
CMYKcmyk(0%, 2.8%, 53.2%, 2.7%)
CIE-LABlab(93.51, -13.45, 60.28)
CIE-LCHlch(93.51, 61.76, 102.58°)
OKLaboklab(93.94% -0.0403 0.1409)
OKLCHoklch(93.94% 0.147 106)
XYZxyz(73.3212, 84.1302, 28.8961)
Luminance0.8413 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F174 #747BF8
analogous
#F8AF74 #F8F174 #BDF874
triadic
#F8F174 #74F8F1 #F174F8
tetradic
#F8F174 #74F8AF #747BF8 #F874BD
square
#F8F174 #74F8AF #747BF8 #F874BD
split-complementary
#F8F174 #74BDF8 #AF74F8
monochromatic
#E6DA0C #F5EB3A #F8F174 #FBF7AE #FEFCE2

Accessibility & contrast

On white

1.18
#F8F174 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.83
#F8F174 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F174
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F174#FFFFFF#000000##000000
##F8F1741.001.1817.8317.83
#FFFFFF1.181.0021.0021.00
#00000017.8321.001.001.00
##00000017.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE968
Deuteranopia (green-blind)
#FFEF7A
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC

Design tokens & code

CSS
--color: #f8f174;
/* rgb */ color: rgb(248, 241, 116);
/* oklch */ color: oklch(93.9% 0.147 106.0);
Tailwind
colors: {
  custom: {
    50: '#fdf59f',
    500: '#f8f174',
    950: '#000000',
  },
}
SCSS
$custom: #f8f174;
$custom-light: #fdf59f;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f174",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 116
  },
  "hsl": {
    "h": 56.818,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.93937,
    "c": 0.14655,
    "h": 106
  },
  "luminance": 0.84128
}

Semantic roles & 50–950 ramp

primary
#F8F174
secondary
#3D45D3
accent
#0CE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F174

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

Preview Lab → · Contrast checker → · Palette generator →

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