#F6F871#F6F871

#F6F871 is a very light, vivid yellow. Relative luminance 0.879; OKLCH L 95.2% C 0.157 H 109.8°. Best body text is #000000 at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#F6F871
RGBrgb(246, 248, 113)
HSLhsl(61, 91%, 71%)
HSVhsv(61, 54%, 97%)
CMYKcmyk(0.8%, 0%, 54.4%, 2.7%)
CIE-LABlab(95.13, -17.88, 63.42)
CIE-LCHlch(95.13, 65.89, 105.74°)
OKLaboklab(95.18% -0.0531 0.1474)
OKLCHoklch(95.18% 0.157 109.8)
XYZxyz(74.5560, 87.9217, 28.6627)
Luminance0.8792 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F6F871 #7371F8
analogous
#F8B671 #F6F871 #B2F871
triadic
#F6F871 #71F6F8 #F871F6
tetradic
#F6F871 #71F8B6 #7371F8 #F871B2
square
#F6F871 #71F8B6 #7371F8 #F871B2
split-complementary
#F6F871 #71B2F8 #B671F8
monochromatic
#E0E30B #F2F537 #F6F871 #FAFBAB #FDFEE2

Accessibility & contrast

On white

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

On black

18.58
#F6F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F6F871
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F6F871#FFFFFF#000000##000000
##F6F8711.001.1318.5818.58
#FFFFFF1.131.0021.0021.00
#00000018.5821.001.001.00
##00000018.5821.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: #f6f871;
/* rgb */ color: rgb(246, 248, 113);
/* oklch */ color: oklch(95.2% 0.157 109.8);
Tailwind
colors: {
  custom: {
    50: '#fcfa9e',
    500: '#f6f871',
    950: '#000000',
  },
}
SCSS
$custom: #f6f871;
$custom-light: #fcfa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f6f871",
  "rgb": {
    "r": 246,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 60.889,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.95181,
    "c": 0.15666,
    "h": 109.8
  },
  "luminance": 0.8792
}

Semantic roles & 50–950 ramp

primary
#F6F871
secondary
#3D3AD3
accent
#00E603
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F6F871

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

Preview Lab → · Contrast checker → · Palette generator →

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