#F2F970#F2F970

#F2F970 is a very light, vivid yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.159 H 111.7°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#F2F970
RGBrgb(242, 249, 112)
HSLhsl(63, 92%, 71%)
HSVhsv(63, 55%, 98%)
CMYKcmyk(2.8%, 0%, 55%, 2.4%)
CIE-LABlab(95.08, -20.01, 63.72)
CIE-LCHlch(95.08, 66.78, 107.43°)
OKLaboklab(95.06% -0.059 0.148)
OKLCHoklch(95.06% 0.159 111.7)
XYZxyz(73.4200, 87.8000, 28.4056)
Luminance0.8780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F970 #7770F9
analogous
#F9BB70 #F2F970 #ADF970
triadic
#F2F970 #70F2F9 #F970F2
tetradic
#F2F970 #70F9BB #7770F9 #F970AD
square
#F2F970 #70F9BB #7770F9 #F970AD
split-complementary
#F2F970 #70ADF9 #BB70F9
monochromatic
#DAE50A #EDF735 #F2F970 #F7FBAB #FCFEE2

Accessibility & contrast

On white

1.13
#F2F970 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.56
#F2F970 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F970
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F970#FFFFFF#000000##000000
##F2F9701.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF62
Deuteranopia (green-blind)
#FFF378
Tritanopia (blue-blind)
#FFECDB
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f970;
/* rgb */ color: rgb(242, 249, 112);
/* oklch */ color: oklch(95.1% 0.159 111.7);
Tailwind
colors: {
  custom: {
    50: '#f9fb9d',
    500: '#f2f970',
    950: '#000000',
  },
}
SCSS
$custom: #f2f970;
$custom-light: #f9fb9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f970",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 112
  },
  "hsl": {
    "h": 63.066,
    "s": 91.946,
    "l": 70.784
  },
  "oklch": {
    "l": 0.95063,
    "c": 0.15931,
    "h": 111.7
  },
  "luminance": 0.87798
}

Semantic roles & 50–950 ramp

primary
#F2F970
secondary
#4139D4
accent
#00E60C
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F970

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

Preview Lab → · Contrast checker → · Palette generator →

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