#F8D873#F8D873

#F8D873 is a very light, vivid yellow. Relative luminance 0.703; OKLCH L 88.9% C 0.126 H 92.1°. Best body text is #000000 at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#F8D873
RGBrgb(248, 216, 115)
HSLhsl(46, 90%, 71%)
HSVhsv(46, 54%, 97%)
CMYKcmyk(0%, 12.9%, 53.6%, 2.7%)
CIE-LABlab(87.15, -1.03, 53.30)
CIE-LCHlch(87.15, 53.31, 91.10°)
OKLaboklab(88.89% -0.0047 0.1257)
OKLCHoklch(88.89% 0.126 92.1)
XYZxyz(66.3644, 70.3091, 26.2917)
Luminance0.7031 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D873 #7393F8
analogous
#F89573 #F8D873 #D5F873
triadic
#F8D873 #73F8D8 #D873F8
tetradic
#F8D873 #73F895 #7393F8 #F873D5
square
#F8D873 #73F895 #7393F8 #F873D5
split-complementary
#F8D873 #73D5F8 #9573F8
monochromatic
#E5B10B #F5C839 #F8D873 #FBE8AD #FEF7E2

Accessibility & contrast

On white

1.39
#F8D873 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.06
#F8D873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D873
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D873#FFFFFF#000000##000000
##F8D8731.001.3915.0615.06
#FFFFFF1.391.0021.0021.00
#00000015.0621.001.001.00
##00000015.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD56A
Deuteranopia (green-blind)
#F3DE77
Tritanopia (blue-blind)
#FFCAC1
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f8d873;
/* rgb */ color: rgb(248, 216, 115);
/* oklch */ color: oklch(88.9% 0.126 92.1);
Tailwind
colors: {
  custom: {
    50: '#fde39e',
    500: '#f8d873',
    950: '#000000',
  },
}
SCSS
$custom: #f8d873;
$custom-light: #fde39e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d873",
  "rgb": {
    "r": 248,
    "g": 216,
    "b": 115
  },
  "hsl": {
    "h": 45.564,
    "s": 90.476,
    "l": 71.176
  },
  "oklch": {
    "l": 0.88894,
    "c": 0.12575,
    "h": 92.1
  },
  "luminance": 0.70306
}

Semantic roles & 50–950 ramp

primary
#F8D873
secondary
#3C60D3
accent
#37E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F8D873

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

Preview Lab → · Contrast checker → · Palette generator →

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