#F8F774#F8F774

#F8F774 is a very light, vivid yellow. Relative luminance 0.877; OKLCH L 95.2% C 0.153 H 108.6°. Best body text is #000000 at 18.55:1 contrast (WCAG AA passes).

Color values

HEX#F8F774
RGBrgb(248, 247, 116)
HSLhsl(60, 90%, 71%)
HSVhsv(60, 53%, 97%)
CMYKcmyk(0%, 0.4%, 53.2%, 2.7%)
CIE-LABlab(95.05, -16.37, 62.06)
CIE-LCHlch(95.05, 64.18, 104.78°)
OKLaboklab(95.17% -0.0486 0.1447)
OKLCHoklch(95.17% 0.153 108.6)
XYZxyz(75.1265, 87.7409, 29.4978)
Luminance0.8774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F774 #7475F8
analogous
#F8B574 #F8F774 #B7F874
triadic
#F8F774 #74F8F7 #F774F8
tetradic
#F8F774 #74F8B5 #7475F8 #F874B7
square
#F8F774 #74F8B5 #7475F8 #F874B7
split-complementary
#F8F774 #74B7F8 #B574F8
monochromatic
#E6E40C #F5F43A #F8F774 #FBFAAE #FEFDE2

Accessibility & contrast

On white

1.13
#F8F774 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.55
#F8F774 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F774
18.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F774#FFFFFF#000000##000000
##F8F7741.001.1318.5518.55
#FFFFFF1.131.0021.0021.00
#00000018.5521.001.001.00
##00000018.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE67
Deuteranopia (green-blind)
#FFF37B
Tritanopia (blue-blind)
#FFE9DA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f8f774;
/* rgb */ color: rgb(248, 247, 116);
/* oklch */ color: oklch(95.2% 0.153 108.6);
Tailwind
colors: {
  custom: {
    50: '#fdf9a0',
    500: '#f8f774',
    950: '#000000',
  },
}
SCSS
$custom: #f8f774;
$custom-light: #fdf9a0;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f774",
  "rgb": {
    "r": 248,
    "g": 247,
    "b": 116
  },
  "hsl": {
    "h": 59.545,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.95167,
    "c": 0.15269,
    "h": 108.6
  },
  "luminance": 0.87739
}

Semantic roles & 50–950 ramp

primary
#F8F774
secondary
#3D3ED3
accent
#02E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F774

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

Preview Lab → · Contrast checker → · Palette generator →

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