#F4F871#F4F871

#F4F871 is a very light, vivid yellow. Relative luminance 0.876; OKLCH L 95.0% C 0.157 H 110.6°. Best body text is #000000 at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#F4F871
RGBrgb(244, 248, 113)
HSLhsl(62, 91%, 71%)
HSVhsv(62, 54%, 97%)
CMYKcmyk(1.6%, 0%, 54.4%, 2.7%)
CIE-LABlab(94.98, -18.66, 63.21)
CIE-LCHlch(94.98, 65.91, 106.45°)
OKLaboklab(95.02% -0.0552 0.147)
OKLCHoklch(95.02% 0.157 110.6)
XYZxyz(73.8581, 87.5618, 28.6300)
Luminance0.8756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F4F871 #7571F8
analogous
#F8B871 #F4F871 #B0F871
triadic
#F4F871 #71F4F8 #F871F4
tetradic
#F4F871 #71F8B8 #7571F8 #F871B0
square
#F4F871 #71F8B8 #7571F8 #F871B0
split-complementary
#F4F871 #71B0F8 #B871F8
monochromatic
#DDE30B #EFF537 #F4F871 #F9FBAB #FDFEE2

Accessibility & contrast

On white

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

On black

18.51
#F4F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F4F871
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F4F871#FFFFFF#000000##000000
##F4F8711.001.1318.5118.51
#FFFFFF1.131.0021.0021.00
#00000018.5121.001.001.00
##00000018.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE63
Deuteranopia (green-blind)
#FFF379
Tritanopia (blue-blind)
#FFEBDA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f4f871;
/* rgb */ color: rgb(244, 248, 113);
/* oklch */ color: oklch(95.0% 0.157 110.6);
Tailwind
colors: {
  custom: {
    50: '#fafa9e',
    500: '#f4f871',
    950: '#000000',
  },
}
SCSS
$custom: #f4f871;
$custom-light: #fafa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f4f871",
  "rgb": {
    "r": 244,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 61.778,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.95023,
    "c": 0.157,
    "h": 110.6
  },
  "luminance": 0.8756
}

Semantic roles & 50–950 ramp

primary
#F4F871
secondary
#3F3AD3
accent
#00E607
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F4F871

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

Preview Lab → · Contrast checker → · Palette generator →

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