#F8F580#F8F580

#F8F580 is a very light, vivid yellow. Relative luminance 0.868; OKLCH L 94.9% C 0.140 H 107.5°. Best body text is #000000 at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#F8F580
RGBrgb(248, 245, 128)
HSLhsl(59, 90%, 74%)
HSVhsv(59, 48%, 97%)
CMYKcmyk(0%, 1.2%, 48.4%, 2.7%)
CIE-LABlab(94.66, -14.42, 56.17)
CIE-LCHlch(94.66, 57.99, 104.40°)
OKLaboklab(94.9% -0.0419 0.1331)
OKLCHoklch(94.9% 0.14 107.5)
XYZxyz(75.2619, 86.8217, 33.2116)
Luminance0.8682 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F580 #8083F8
analogous
#F8B980 #F8F580 #BFF880
triadic
#F8F580 #80F8F5 #F580F8
tetradic
#F8F580 #80F8B9 #8083F8 #F880BF
square
#F8F580 #80F8B9 #8083F8 #F880BF
split-complementary
#F8F580 #80BFF8 #B980F8
monochromatic
#F0EB0D #F5F046 #F8F580 #FBFABA #FDFDE2

Accessibility & contrast

On white

1.14
#F8F580 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.36
#F8F580 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F580
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F580#FFFFFF#000000##000000
##F8F5801.001.1418.3618.36
#FFFFFF1.141.0021.0021.00
#00000018.3621.001.001.00
##00000018.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED75
Deuteranopia (green-blind)
#FFF286
Tritanopia (blue-blind)
#FFE8DA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f8f580;
/* rgb */ color: rgb(248, 245, 128);
/* oklch */ color: oklch(94.9% 0.140 107.5);
Tailwind
colors: {
  custom: {
    50: '#fdf8a7',
    500: '#f8f580',
    950: '#000000',
  },
}
SCSS
$custom: #f8f580;
$custom-light: #fdf8a7;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f580",
  "rgb": {
    "r": 248,
    "g": 245,
    "b": 128
  },
  "hsl": {
    "h": 58.5,
    "s": 89.552,
    "l": 73.725
  },
  "oklch": {
    "l": 0.94898,
    "c": 0.13951,
    "h": 107.5
  },
  "luminance": 0.8682
}

Semantic roles & 50–950 ramp

primary
#F8F580
secondary
#474BD5
accent
#06E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F8F580

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

Preview Lab → · Contrast checker → · Palette generator →

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