#F2F772#F2F772

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

Color values

HEX#F2F772
RGBrgb(242, 247, 114)
HSLhsl(62, 89%, 71%)
HSVhsv(62, 54%, 97%)
CMYKcmyk(2%, 0%, 53.8%, 3.1%)
CIE-LABlab(94.57, -18.89, 62.27)
CIE-LCHlch(94.57, 65.08, 106.88°)
OKLaboklab(94.67% -0.0557 0.1451)
OKLCHoklch(94.67% 0.155 111)
XYZxyz(72.9177, 86.6153, 28.7936)
Luminance0.8661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F772 #7772F7
analogous
#F7BA72 #F2F772 #AFF772
triadic
#F2F772 #72F2F7 #F772F2
tetradic
#F2F772 #72F7BA #7772F7 #F772AF
square
#F2F772 #72F7BA #7772F7 #F772AF
split-complementary
#F2F772 #72AFF7 #BA72F7
monochromatic
#DAE20D #EDF438 #F2F772 #F7FAAC #FCFDE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2F772#FFFFFF#000000##000000
##F2F7721.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)
#FFED65
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f2f772;
/* rgb */ color: rgb(242, 247, 114);
/* oklch */ color: oklch(94.7% 0.155 111.0);
Tailwind
colors: {
  custom: {
    50: '#f9f99e',
    500: '#f2f772',
    950: '#000000',
  },
}
SCSS
$custom: #f2f772;
$custom-light: #f9f99e;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f772",
  "rgb": {
    "r": 242,
    "g": 247,
    "b": 114
  },
  "hsl": {
    "h": 62.256,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.94668,
    "c": 0.1554,
    "h": 111
  },
  "luminance": 0.86614
}

Semantic roles & 50–950 ramp

primary
#F2F772
secondary
#413BD2
accent
#00E609
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F772

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

Preview Lab → · Contrast checker → · Palette generator →

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