#F7F871#F7F871

#F7F871 is a very light, vivid yellow. Relative luminance 0.881; OKLCH L 95.3% C 0.157 H 109.4°. Best body text is #000000 at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#F7F871
RGBrgb(247, 248, 113)
HSLhsl(60, 91%, 71%)
HSVhsv(60, 54%, 97%)
CMYKcmyk(0.4%, 0%, 54.4%, 2.7%)
CIE-LABlab(95.20, -17.48, 63.53)
CIE-LCHlch(95.20, 65.89, 105.38°)
OKLaboklab(95.26% -0.052 0.1476)
OKLCHoklch(95.26% 0.157 109.4)
XYZxyz(74.9078, 88.1031, 28.6792)
Luminance0.8810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F7F871 #7271F8
analogous
#F8B571 #F7F871 #B4F871
triadic
#F7F871 #71F7F8 #F871F7
tetradic
#F7F871 #71F8B5 #7271F8 #F871B4
square
#F7F871 #71F8B5 #7271F8 #F871B4
split-complementary
#F7F871 #71B4F8 #B571F8
monochromatic
#E2E30B #F4F537 #F7F871 #FAFBAB #FDFEE2

Accessibility & contrast

On white

1.13
#F7F871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.62
#F7F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F7F871
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F7F871#FFFFFF#000000##000000
##F7F8711.001.1318.6218.62
#FFFFFF1.131.0021.0021.00
#00000018.6221.001.001.00
##00000018.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF63
Deuteranopia (green-blind)
#FFF378
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f7f871;
/* rgb */ color: rgb(247, 248, 113);
/* oklch */ color: oklch(95.3% 0.157 109.4);
Tailwind
colors: {
  custom: {
    50: '#fcfa9e',
    500: '#f7f871',
    950: '#000000',
  },
}
SCSS
$custom: #f7f871;
$custom-light: #fcfa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f7f871",
  "rgb": {
    "r": 247,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 60.444,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.9526,
    "c": 0.1565,
    "h": 109.4
  },
  "luminance": 0.88101
}

Semantic roles & 50–950 ramp

primary
#F7F871
secondary
#3B3AD3
accent
#00E602
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F7F871

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

Preview Lab → · Contrast checker → · Palette generator →

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