#F7E871#F7E871

#F7E871 is a very light, vivid yellow. Relative luminance 0.787; OKLCH L 92.0% C 0.141 H 102.2°. Best body text is #000000 at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#F7E871
RGBrgb(247, 232, 113)
HSLhsl(53, 89%, 71%)
HSVhsv(53, 54%, 97%)
CMYKcmyk(0%, 6.1%, 54.3%, 3.1%)
CIE-LABlab(91.09, -9.64, 58.82)
CIE-LCHlch(91.09, 59.60, 99.31°)
OKLaboklab(91.99% -0.0297 0.1375)
OKLCHoklch(91.99% 0.141 102.2)
XYZxyz(70.1973, 78.6821, 27.1091)
Luminance0.7868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7E871 #7180F7
analogous
#F7A571 #F7E871 #C3F771
triadic
#F7E871 #71F7E8 #E871F7
tetradic
#F7E871 #71F7A5 #7180F7 #F771C3
square
#F7E871 #71F7A5 #7180F7 #F771C3
split-complementary
#F7E871 #71C3F7 #A571F7
monochromatic
#E1C90D #F4DF37 #F7E871 #FAF1AB #FDFAE2

Accessibility & contrast

On white

1.25
#F7E871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.74
#F7E871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7E871
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7E871#FFFFFF#000000##000000
##F7E8711.001.2516.7416.74
#FFFFFF1.251.0021.0021.00
#00000016.7421.001.001.00
##00000016.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE265
Deuteranopia (green-blind)
#FFE977
Tritanopia (blue-blind)
#FFDACD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f7e871;
/* rgb */ color: rgb(247, 232, 113);
/* oklch */ color: oklch(92.0% 0.141 102.2);
Tailwind
colors: {
  custom: {
    50: '#fcef9d',
    500: '#f7e871',
    950: '#000000',
  },
}
SCSS
$custom: #f7e871;
$custom-light: #fcef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f7e871",
  "rgb": {
    "r": 247,
    "g": 232,
    "b": 113
  },
  "hsl": {
    "h": 53.284,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.91987,
    "c": 0.14063,
    "h": 102.2
  },
  "luminance": 0.7868
}

Semantic roles & 50–950 ramp

primary
#F7E871
secondary
#3A4BD2
accent
#1AE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F7E871

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

Preview Lab → · Contrast checker → · Palette generator →

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