#F7D871#F7D871

#F7D871 is a very light, vivid yellow. Relative luminance 0.701; OKLCH L 88.8% C 0.127 H 92.9°. Best body text is #000000 at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#F7D871
RGBrgb(247, 216, 113)
HSLhsl(46, 89%, 71%)
HSVhsv(46, 54%, 97%)
CMYKcmyk(0%, 12.6%, 54.3%, 3.1%)
CIE-LABlab(87.04, -1.59, 54.09)
CIE-LCHlch(87.04, 54.11, 91.68°)
OKLaboklab(88.78% -0.0065 0.1272)
OKLCHoklch(88.78% 0.127 92.9)
XYZxyz(65.8968, 70.0812, 25.6756)
Luminance0.7008 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7D871 #7190F7
analogous
#F79571 #F7D871 #D3F771
triadic
#F7D871 #71F7D8 #D871F7
tetradic
#F7D871 #71F795 #7190F7 #F771D3
square
#F7D871 #71F795 #7190F7 #F771D3
split-complementary
#F7D871 #71D3F7 #9571F7
monochromatic
#E1B00D #F4C837 #F7D871 #FAE8AB #FDF7E2

Accessibility & contrast

On white

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

On black

15.02
#F7D871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7D871
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7D871#FFFFFF#000000##000000
##F7D8711.001.4015.0215.02
#FFFFFF1.401.0021.0021.00
#00000015.0221.001.001.00
##00000015.0221.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: #f7d871;
/* rgb */ color: rgb(247, 216, 113);
/* oklch */ color: oklch(88.8% 0.127 92.9);
Tailwind
colors: {
  custom: {
    50: '#fce39c',
    500: '#f7d871',
    950: '#000000',
  },
}
SCSS
$custom: #f7d871;
$custom-light: #fce39c;
$custom-dark: #000000;
JSON
{
  "hex": "#f7d871",
  "rgb": {
    "r": 247,
    "g": 216,
    "b": 113
  },
  "hsl": {
    "h": 46.119,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.88778,
    "c": 0.12737,
    "h": 92.9
  },
  "luminance": 0.70078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F7D871

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

Preview Lab → · Contrast checker → · Palette generator →

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