#F0F871#F0F871

#F0F871 is a very light, vivid yellow. Relative luminance 0.869; OKLCH L 94.7% C 0.158 H 112.1°. Best body text is #000000 at 18.37:1 contrast (WCAG AA passes).

Color values

HEX#F0F871
RGBrgb(240, 248, 113)
HSLhsl(64, 91%, 71%)
HSVhsv(64, 54%, 97%)
CMYKcmyk(3.2%, 0%, 54.4%, 2.7%)
CIE-LABlab(94.68, -20.24, 62.79)
CIE-LCHlch(94.68, 65.97, 107.87°)
OKLaboklab(94.71% -0.0595 0.1461)
OKLCHoklch(94.71% 0.158 112.1)
XYZxyz(72.4849, 86.8538, 28.5657)
Luminance0.8685 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0F871 #7971F8
analogous
#F8BD71 #F0F871 #ACF871
triadic
#F0F871 #71F0F8 #F871F0
tetradic
#F0F871 #71F8BD #7971F8 #F871AC
square
#F0F871 #71F8BD #7971F8 #F871AC
split-complementary
#F0F871 #71ACF8 #BD71F8
monochromatic
#D7E30B #EAF537 #F0F871 #F6FBAB #FCFEE2

Accessibility & contrast

On white

1.14
#F0F871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.37
#F0F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0F871
18.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0F871#FFFFFF#000000##000000
##F0F8711.001.1418.3718.37
#FFFFFF1.141.0021.0021.00
#00000018.3721.001.001.00
##00000018.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE63
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FEEBDA
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #f0f871;
/* rgb */ color: rgb(240, 248, 113);
/* oklch */ color: oklch(94.7% 0.158 112.1);
Tailwind
colors: {
  custom: {
    50: '#f7fa9e',
    500: '#f0f871',
    950: '#000000',
  },
}
SCSS
$custom: #f0f871;
$custom-light: #f7fa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f0f871",
  "rgb": {
    "r": 240,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 63.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94709,
    "c": 0.15776,
    "h": 112.1
  },
  "luminance": 0.86852
}

Semantic roles & 50–950 ramp

primary
#F0F871
secondary
#433AD3
accent
#00E60E
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F0F871

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

Preview Lab → · Contrast checker → · Palette generator →

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