#F8F871#F8F871

#F8F871 is a very light, vivid yellow. Relative luminance 0.883; OKLCH L 95.3% C 0.156 H 109.0°. Best body text is #000000 at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#F8F871
RGBrgb(248, 248, 113)
HSLhsl(60, 91%, 71%)
HSVhsv(60, 54%, 97%)
CMYKcmyk(0%, 0%, 54.4%, 2.7%)
CIE-LABlab(95.28, -17.09, 63.64)
CIE-LCHlch(95.28, 65.89, 105.03°)
OKLaboklab(95.34% -0.051 0.1478)
OKLCHoklch(95.34% 0.156 109)
XYZxyz(75.2615, 88.2855, 28.6958)
Luminance0.8828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8F871 #7171F8
analogous
#F8B471 #F8F871 #B4F871
triadic
#F8F871 #71F8F8 #F871F8
tetradic
#F8F871 #71F8B4 #7171F8 #F871B4
square
#F8F871 #71F8B4 #7171F8 #F871B4
split-complementary
#F8F871 #71B4F8 #B471F8
monochromatic
#E3E30B #F5F537 #F8F871 #FBFBAB #FEFEE2

Accessibility & contrast

On white

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

On black

18.66
#F8F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8F871
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8F871#FFFFFF#000000##000000
##F8F8711.001.1318.6618.66
#FFFFFF1.131.0021.0021.00
#00000018.6621.001.001.00
##00000018.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f8f871;
/* rgb */ color: rgb(248, 248, 113);
/* oklch */ color: oklch(95.3% 0.156 109.0);
Tailwind
colors: {
  custom: {
    50: '#fdfa9e',
    500: '#f8f871',
    950: '#000000',
  },
}
SCSS
$custom: #f8f871;
$custom-light: #fdfa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f8f871",
  "rgb": {
    "r": 248,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 60,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.9534,
    "c": 0.15635,
    "h": 109
  },
  "luminance": 0.88284
}

Semantic roles & 50–950 ramp

primary
#F8F871
secondary
#3A3AD3
accent
#00E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F8F871

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

Preview Lab → · Contrast checker → · Palette generator →

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