#F8D871#F8D871

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

Color values

HEX#F8D871
RGBrgb(248, 216, 113)
HSLhsl(46, 91%, 71%)
HSVhsv(46, 54%, 97%)
CMYKcmyk(0%, 12.9%, 54.4%, 2.7%)
CIE-LABlab(87.13, -1.19, 54.22)
CIE-LCHlch(87.13, 54.23, 91.25°)
OKLaboklab(88.87% -0.0054 0.1275)
OKLCHoklch(88.87% 0.128 92.4)
XYZxyz(66.2505, 70.2636, 25.6922)
Luminance0.7026 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8D871 #7191F8
analogous
#F89471 #F8D871 #D4F871
triadic
#F8D871 #71F8D8 #D871F8
tetradic
#F8D871 #71F894 #7191F8 #F871D4
square
#F8D871 #71F894 #7191F8 #F871D4
split-complementary
#F8D871 #71D4F8 #9471F8
monochromatic
#E3B00B #F5C837 #F8D871 #FBE8AB #FEF7E2

Accessibility & contrast

On white

1.40
#F8D871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.05
#F8D871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8D871
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8D871#FFFFFF#000000##000000
##F8D8711.001.4015.0515.05
#FFFFFF1.401.0021.0021.00
#00000015.0521.001.001.00
##00000015.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#EBD568
Deuteranopia (green-blind)
#F3DE75
Tritanopia (blue-blind)
#FFCAC0
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f8d871;
/* rgb */ color: rgb(248, 216, 113);
/* oklch */ color: oklch(88.9% 0.128 92.4);
Tailwind
colors: {
  custom: {
    50: '#fde39c',
    500: '#f8d871',
    950: '#000000',
  },
}
SCSS
$custom: #f8d871;
$custom-light: #fde39c;
$custom-dark: #000000;
JSON
{
  "hex": "#f8d871",
  "rgb": {
    "r": 248,
    "g": 216,
    "b": 113
  },
  "hsl": {
    "h": 45.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.88869,
    "c": 0.12758,
    "h": 92.4
  },
  "luminance": 0.7026
}

Semantic roles & 50–950 ramp

primary
#F8D871
secondary
#3A5ED3
accent
#36E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F8D871

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

Preview Lab → · Contrast checker → · Palette generator →

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