#F8F578#F8F578

#F8F578 is a very light, vivid yellow. Relative luminance 0.866; OKLCH L 94.8% C 0.147 H 107.7°. Best body text is #000000 at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#F8F578
RGBrgb(248, 245, 120)
HSLhsl(59, 90%, 72%)
HSVhsv(59, 52%, 97%)
CMYKcmyk(0%, 1.2%, 51.6%, 2.7%)
CIE-LABlab(94.58, -15.09, 59.72)
CIE-LCHlch(94.58, 61.60, 104.18°)
OKLaboklab(94.8% -0.0446 0.1401)
OKLCHoklch(94.8% 0.147 107.7)
XYZxyz(74.7559, 86.6193, 30.5469)
Luminance0.8662 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F578 #787BF8
analogous
#F8B578 #F8F578 #BBF878
triadic
#F8F578 #78F8F5 #F578F8
tetradic
#F8F578 #78F8B5 #787BF8 #F878BB
square
#F8F578 #78F8B5 #787BF8 #F878BB
split-complementary
#F8F578 #78BBF8 #B578F8
monochromatic
#E9E40C #F5F13E #F8F578 #FBF9B2 #FDFDE2

Accessibility & contrast

On white

1.15
#F8F578 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.32
#F8F578 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F578
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F578#FFFFFF#000000##000000
##F8F5781.001.1518.3218.32
#FFFFFF1.151.0021.0021.00
#00000018.3221.001.001.00
##00000018.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED6C
Deuteranopia (green-blind)
#FFF27E
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f8f578;
/* rgb */ color: rgb(248, 245, 120);
/* oklch */ color: oklch(94.8% 0.147 107.7);
Tailwind
colors: {
  custom: {
    50: '#fdf8a2',
    500: '#f8f578',
    950: '#000000',
  },
}
SCSS
$custom: #f8f578;
$custom-light: #fdf8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f578",
  "rgb": {
    "r": 248,
    "g": 245,
    "b": 120
  },
  "hsl": {
    "h": 58.594,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.94801,
    "c": 0.14701,
    "h": 107.7
  },
  "luminance": 0.86617
}

Semantic roles & 50–950 ramp

primary
#F8F578
secondary
#4044D4
accent
#05E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F578

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

Preview Lab → · Contrast checker → · Palette generator →

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