#F8D973#F8D973

#F8D973 is a very light, vivid yellow. Relative luminance 0.708; OKLCH L 89.1% C 0.126 H 92.8°. Best body text is #000000 at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#F8D973
RGBrgb(248, 217, 115)
HSLhsl(46, 90%, 71%)
HSVhsv(46, 54%, 97%)
CMYKcmyk(0%, 12.5%, 53.6%, 2.7%)
CIE-LABlab(87.40, -1.54, 53.60)
CIE-LCHlch(87.40, 53.62, 91.64°)
OKLaboklab(89.09% -0.0062 0.1263)
OKLCHoklch(89.09% 0.126 92.8)
XYZxyz(66.6213, 70.8231, 26.3774)
Luminance0.7082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D973 #7392F8
analogous
#F89673 #F8D973 #D4F873
triadic
#F8D973 #73F8D9 #D973F8
tetradic
#F8D973 #73F896 #7392F8 #F873D4
square
#F8D973 #73F896 #7392F8 #F873D4
split-complementary
#F8D973 #73D4F8 #9673F8
monochromatic
#E5B20B #F5C939 #F8D973 #FBE9AD #FEF7E2

Accessibility & contrast

On white

1.38
#F8D973 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.16
#F8D973 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D973
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D973#FFFFFF#000000##000000
##F8D9731.001.3815.1615.16
#FFFFFF1.381.0021.0021.00
#00000015.1621.001.001.00
##00000015.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD66A
Deuteranopia (green-blind)
#F4DF77
Tritanopia (blue-blind)
#FFCBC1
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f8d973;
/* rgb */ color: rgb(248, 217, 115);
/* oklch */ color: oklch(89.1% 0.126 92.8);
Tailwind
colors: {
  custom: {
    50: '#fde49e',
    500: '#f8d973',
    950: '#000000',
  },
}
SCSS
$custom: #f8d973;
$custom-light: #fde49e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d973",
  "rgb": {
    "r": 248,
    "g": 217,
    "b": 115
  },
  "hsl": {
    "h": 46.015,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.89092,
    "c": 0.12646,
    "h": 92.8
  },
  "luminance": 0.7082
}

Semantic roles & 50–950 ramp

primary
#F8D973
secondary
#3C5FD3
accent
#35E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F8D973

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

Preview Lab → · Contrast checker → · Palette generator →

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