#F2F871#F2F871

#F2F871 is a very light, vivid yellow. Relative luminance 0.872; OKLCH L 94.9% C 0.157 H 111.4°. Best body text is #000000 at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#F2F871
RGBrgb(242, 248, 113)
HSLhsl(63, 91%, 71%)
HSVhsv(63, 54%, 97%)
CMYKcmyk(2.4%, 0%, 54.4%, 2.7%)
CIE-LABlab(94.83, -19.45, 63.00)
CIE-LCHlch(94.83, 65.93, 107.16°)
OKLaboklab(94.87% -0.0574 0.1465)
OKLCHoklch(94.87% 0.157 111.4)
XYZxyz(73.1677, 87.2059, 28.5977)
Luminance0.8720 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F871 #7771F8
analogous
#F8BB71 #F2F871 #AEF871
triadic
#F2F871 #71F2F8 #F871F2
tetradic
#F2F871 #71F8BB #7771F8 #F871AE
square
#F2F871 #71F8BB #7771F8 #F871AE
split-complementary
#F2F871 #71AEF8 #BB71F8
monochromatic
#DAE30B #EDF537 #F2F871 #F7FBAB #FCFEE2

Accessibility & contrast

On white

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

On black

18.44
#F2F871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F871
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F871#FFFFFF#000000##000000
##F2F8711.001.1418.4418.44
#FFFFFF1.141.0021.0021.00
#00000018.4421.001.001.00
##00000018.4421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f871;
/* rgb */ color: rgb(242, 248, 113);
/* oklch */ color: oklch(94.9% 0.157 111.4);
Tailwind
colors: {
  custom: {
    50: '#f9fa9e',
    500: '#f2f871',
    950: '#000000',
  },
}
SCSS
$custom: #f2f871;
$custom-light: #f9fa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f871",
  "rgb": {
    "r": 242,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 62.667,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94865,
    "c": 0.15737,
    "h": 111.4
  },
  "luminance": 0.87204
}

Semantic roles & 50–950 ramp

primary
#F2F871
secondary
#413AD3
accent
#00E60A
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F871

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

Preview Lab → · Contrast checker → · Palette generator →

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