#F9F871#F9F871

#F9F871 is a very light, vivid yellow. Relative luminance 0.885; OKLCH L 95.4% C 0.156 H 108.6°. Best body text is #000000 at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#F9F871
RGBrgb(249, 248, 113)
HSLhsl(60, 92%, 71%)
HSVhsv(60, 55%, 98%)
CMYKcmyk(0%, 0.4%, 54.6%, 2.4%)
CIE-LABlab(95.36, -16.69, 63.74)
CIE-LCHlch(95.36, 65.89, 104.67°)
OKLaboklab(95.42% -0.0499 0.148)
OKLCHoklch(95.42% 0.156 108.6)
XYZxyz(75.6170, 88.4688, 28.7125)
Luminance0.8847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F9F871 #7172F9
analogous
#F9B471 #F9F871 #B6F971
triadic
#F9F871 #71F9F8 #F871F9
tetradic
#F9F871 #71F9B4 #7172F9 #F971B6
square
#F9F871 #71F9B4 #7172F9 #F971B6
split-complementary
#F9F871 #71B6F9 #B471F9
monochromatic
#E6E40A #F7F536 #F9F871 #FBFBAC #FEFEE2

Accessibility & contrast

On white

1.12
#F9F871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.69
#F9F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F9F871
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F9F871#FFFFFF#000000##000000
##F9F8711.001.1218.6918.69
#FFFFFF1.121.0021.0021.00
#00000018.6921.001.001.00
##00000018.6921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f9f871;
/* rgb */ color: rgb(249, 248, 113);
/* oklch */ color: oklch(95.4% 0.156 108.6);
Tailwind
colors: {
  custom: {
    50: '#fefa9e',
    500: '#f9f871',
    950: '#000000',
  },
}
SCSS
$custom: #f9f871;
$custom-light: #fefa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f9f871",
  "rgb": {
    "r": 249,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 59.559,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.9542,
    "c": 0.1562,
    "h": 108.6
  },
  "luminance": 0.88467
}

Semantic roles & 50–950 ramp

primary
#F9F871
secondary
#3A3BD4
accent
#02E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F9F871

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

Preview Lab → · Contrast checker → · Palette generator →

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