#F2F571#F2F571

#F2F571 is a very light, vivid yellow. Relative luminance 0.854; OKLCH L 94.2% C 0.154 H 110.2°. Best body text is #000000 at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#F2F571
RGBrgb(242, 245, 113)
HSLhsl(61, 87%, 70%)
HSVhsv(61, 54%, 96%)
CMYKcmyk(1.2%, 0%, 53.9%, 3.9%)
CIE-LABlab(94.04, -18.01, 62.11)
CIE-LCHlch(94.04, 64.67, 106.17°)
OKLaboklab(94.24% -0.0532 0.1446)
OKLCHoklch(94.24% 0.154 110.2)
XYZxyz(72.2528, 85.3760, 28.2927)
Luminance0.8537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F571 #7471F5
analogous
#F5B671 #F2F571 #B0F571
triadic
#F2F571 #71F2F5 #F571F2
tetradic
#F2F571 #71F5B6 #7471F5 #F571B0
square
#F2F571 #71F5B6 #7471F5 #F571B0
split-complementary
#F2F571 #71B0F5 #B671F5
monochromatic
#D7DC10 #EDF138 #F2F571 #F7F9AA #FCFDE2

Accessibility & contrast

On white

1.16
#F2F571 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.07
#F2F571 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F571
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F571#FFFFFF#000000##000000
##F2F5711.001.1618.0718.07
#FFFFFF1.161.0021.0021.00
#00000018.0721.001.001.00
##00000018.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC64
Deuteranopia (green-blind)
#FFF078
Tritanopia (blue-blind)
#FFE8D8
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f2f571;
/* rgb */ color: rgb(242, 245, 113);
/* oklch */ color: oklch(94.2% 0.154 110.2);
Tailwind
colors: {
  custom: {
    50: '#f9f89e',
    500: '#f2f571',
    950: '#000000',
  },
}
SCSS
$custom: #f2f571;
$custom-light: #f9f89e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f571",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 113
  },
  "hsl": {
    "h": 61.364,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.94242,
    "c": 0.15412,
    "h": 110.2
  },
  "luminance": 0.85374
}

Semantic roles & 50–950 ramp

primary
#F2F571
secondary
#3E3BCF
accent
#02E307
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F571

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

Preview Lab → · Contrast checker → · Palette generator →

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