#F8F176#F8F176

#F8F176 is a very light, vivid yellow. Relative luminance 0.842; OKLCH L 94.0% C 0.145 H 105.9°. Best body text is #000000 at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#F8F176
RGBrgb(248, 241, 118)
HSLhsl(57, 90%, 72%)
HSVhsv(57, 52%, 97%)
CMYKcmyk(0%, 2.8%, 52.4%, 2.7%)
CIE-LABlab(93.53, -13.29, 59.40)
CIE-LCHlch(93.53, 60.87, 102.61°)
OKLaboklab(93.96% -0.0397 0.1392)
OKLCHoklch(93.96% 0.145 105.9)
XYZxyz(73.4388, 84.1772, 29.5154)
Luminance0.8417 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F176 #767DF8
analogous
#F8B076 #F8F176 #BEF876
triadic
#F8F176 #76F8F1 #F176F8
tetradic
#F8F176 #76F8B0 #767DF8 #F876BE
square
#F8F176 #76F8B0 #767DF8 #F876BE
split-complementary
#F8F176 #76BEF8 #B076F8
monochromatic
#E8DC0C #F5EB3C #F8F176 #FBF7B0 #FEFCE2

Accessibility & contrast

On white

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

On black

17.84
#F8F176 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F176
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F176#FFFFFF#000000##000000
##F8F1761.001.1817.8417.84
#FFFFFF1.181.0021.0021.00
#00000017.8421.001.001.00
##00000017.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8f176;
/* rgb */ color: rgb(248, 241, 118);
/* oklch */ color: oklch(94.0% 0.145 105.9);
Tailwind
colors: {
  custom: {
    50: '#fdf5a1',
    500: '#f8f176',
    950: '#000000',
  },
}
SCSS
$custom: #f8f176;
$custom-light: #fdf5a1;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f176",
  "rgb": {
    "r": 248,
    "g": 241,
    "b": 118
  },
  "hsl": {
    "h": 56.769,
    "s": 90.278,
    "l": 71.765
  },
  "oklch": {
    "l": 0.9396,
    "c": 0.14475,
    "h": 105.9
  },
  "luminance": 0.84175
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F8F176

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

Preview Lab → · Contrast checker → · Palette generator →

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