#F8D874#F8D874

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

Color values

HEX#F8D874
RGBrgb(248, 216, 116)
HSLhsl(45, 90%, 71%)
HSVhsv(45, 53%, 97%)
CMYKcmyk(0%, 12.9%, 53.2%, 2.7%)
CIE-LABlab(87.16, -0.95, 52.84)
CIE-LCHlch(87.16, 52.85, 91.03°)
OKLaboklab(88.91% -0.0043 0.1248)
OKLCHoklch(88.91% 0.125 92)
XYZxyz(66.4222, 70.3323, 26.5964)
Luminance0.7033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D874 #7494F8
analogous
#F89674 #F8D874 #D6F874
triadic
#F8D874 #74F8D8 #D874F8
tetradic
#F8D874 #74F896 #7494F8 #F874D6
square
#F8D874 #74F896 #7494F8 #F874D6
split-complementary
#F8D874 #74D6F8 #9674F8
monochromatic
#E6B10C #F5C83A #F8D874 #FBE8AE #FEF7E2

Accessibility & contrast

On white

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

On black

15.07
#F8D874 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D874
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D874#FFFFFF#000000##000000
##F8D8741.001.3915.0715.07
#FFFFFF1.391.0021.0021.00
#00000015.0721.001.001.00
##00000015.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8d874;
/* rgb */ color: rgb(248, 216, 116);
/* oklch */ color: oklch(88.9% 0.125 92.0);
Tailwind
colors: {
  custom: {
    50: '#fde39e',
    500: '#f8d874',
    950: '#000000',
  },
}
SCSS
$custom: #f8d874;
$custom-light: #fde39e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d874",
  "rgb": {
    "r": 248,
    "g": 216,
    "b": 116
  },
  "hsl": {
    "h": 45.455,
    "s": 90.411,
    "l": 71.373
  },
  "oklch": {
    "l": 0.88906,
    "c": 0.12483,
    "h": 92
  },
  "luminance": 0.70329
}

Semantic roles & 50–950 ramp

primary
#F8D874
secondary
#3D61D3
accent
#38E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150F
muted
#868480

Preview Lab

Preview with #F8D874

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

Preview Lab → · Contrast checker → · Palette generator →

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