#F2F572#F2F572

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

Color values

HEX#F2F572
RGBrgb(242, 245, 114)
HSLhsl(61, 87%, 70%)
HSVhsv(61, 53%, 96%)
CMYKcmyk(1.2%, 0%, 53.5%, 3.9%)
CIE-LABlab(94.05, -17.93, 61.68)
CIE-LCHlch(94.05, 64.23, 106.21°)
OKLaboklab(94.25% -0.0529 0.1438)
OKLCHoklch(94.25% 0.153 110.2)
XYZxyz(72.3094, 85.3987, 28.5908)
Luminance0.8540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F572 #7572F5
analogous
#F5B672 #F2F572 #B0F572
triadic
#F2F572 #72F2F5 #F572F2
tetradic
#F2F572 #72F5B6 #7572F5 #F572B0
square
#F2F572 #72F5B6 #7572F5 #F572B0
split-complementary
#F2F572 #72B0F5 #B672F5
monochromatic
#D8DD10 #EDF139 #F2F572 #F7F9AB #FCFDE2

Accessibility & contrast

On white

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

On black

18.08
#F2F572 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F572
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F572#FFFFFF#000000##000000
##F2F5721.001.1618.0818.08
#FFFFFF1.161.0021.0021.00
#00000018.0821.001.001.00
##00000018.0821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2f572;
/* rgb */ color: rgb(242, 245, 114);
/* oklch */ color: oklch(94.3% 0.153 110.2);
Tailwind
colors: {
  custom: {
    50: '#f9f89e',
    500: '#f2f572',
    950: '#000000',
  },
}
SCSS
$custom: #f2f572;
$custom-light: #f9f89e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f572",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 114
  },
  "hsl": {
    "h": 61.374,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.94253,
    "c": 0.15324,
    "h": 110.2
  },
  "luminance": 0.85397
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2F572

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

Preview Lab → · Contrast checker → · Palette generator →

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