#F2F771#F2F771

#F2F771 is a very light, vivid yellow. Relative luminance 0.866; OKLCH L 94.7% C 0.156 H 111.0°. Best body text is #000000 at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#F2F771
RGBrgb(242, 247, 113)
HSLhsl(62, 89%, 71%)
HSVhsv(62, 54%, 97%)
CMYKcmyk(2%, 0%, 54.3%, 3.1%)
CIE-LABlab(94.57, -18.97, 62.70)
CIE-LCHlch(94.57, 65.51, 106.83°)
OKLaboklab(94.66% -0.056 0.1459)
OKLCHoklch(94.66% 0.156 111)
XYZxyz(72.8611, 86.5926, 28.4955)
Luminance0.8659 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F771 #7671F7
analogous
#F7B971 #F2F771 #AFF771
triadic
#F2F771 #71F2F7 #F771F2
tetradic
#F2F771 #71F7B9 #7671F7 #F771AF
square
#F2F771 #71F7B9 #7671F7 #F771AF
split-complementary
#F2F771 #71AFF7 #B971F7
monochromatic
#D9E10D #EDF437 #F2F771 #F7FAAB #FCFDE2

Accessibility & contrast

On white

1.15
#F2F771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.32
#F2F771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F771
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F771#FFFFFF#000000##000000
##F2F7711.001.1518.3218.32
#FFFFFF1.151.0021.0021.00
#00000018.3221.001.001.00
##00000018.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED63
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFEAD9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f2f771;
/* rgb */ color: rgb(242, 247, 113);
/* oklch */ color: oklch(94.7% 0.156 111.0);
Tailwind
colors: {
  custom: {
    50: '#f9f99e',
    500: '#f2f771',
    950: '#000000',
  },
}
SCSS
$custom: #f2f771;
$custom-light: #f9f99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f771",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 113
  },
  "hsl": {
    "h": 62.239,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.94658,
    "c": 0.15627,
    "h": 111
  },
  "luminance": 0.86591
}

Semantic roles & 50–950 ramp

primary
#F2F771
secondary
#403AD2
accent
#00E609
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F771

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

Preview Lab → · Contrast checker → · Palette generator →

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