#F2F97A#F2F97A

#F2F97A is a very light, vivid yellow. Relative luminance 0.880; OKLCH L 95.2% C 0.150 H 111.8°. Best body text is #000000 at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#F2F97A
RGBrgb(242, 249, 122)
HSLhsl(63, 91%, 73%)
HSVhsv(63, 51%, 98%)
CMYKcmyk(2.8%, 0%, 51%, 2.4%)
CIE-LABlab(95.18, -19.21, 59.40)
CIE-LCHlch(95.18, 62.43, 107.92°)
OKLaboklab(95.17% -0.0558 0.1397)
OKLCHoklch(95.17% 0.15 111.8)
XYZxyz(74.0080, 88.0352, 31.5024)
Luminance0.8803 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F97A #817AF9
analogous
#F9C07A #F2F97A #B2F97A
triadic
#F2F97A #7AF2F9 #F97AF2
tetradic
#F2F97A #7AF9C0 #817AF9 #F97AB2
square
#F2F97A #7AF9C0 #817AF9 #F97AB2
split-complementary
#F2F97A #7AB2F9 #C07AF9
monochromatic
#E1EE0B #ECF63F #F2F97A #F8FCB5 #FCFEE2

Accessibility & contrast

On white

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

On black

18.61
#F2F97A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F97A
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F97A#FFFFFF#000000##000000
##F2F97A1.001.1318.6118.61
#FFFFFF1.131.0021.0021.00
#00000018.6121.001.001.00
##00000018.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF6E
Deuteranopia (green-blind)
#FFF381
Tritanopia (blue-blind)
#FFECDC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f97a;
/* rgb */ color: rgb(242, 249, 122);
/* oklch */ color: oklch(95.2% 0.150 111.8);
Tailwind
colors: {
  custom: {
    50: '#f9fba4',
    500: '#f2f97a',
    950: '#000000',
  },
}
SCSS
$custom: #f2f97a;
$custom-light: #f9fba4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f97a",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 122
  },
  "hsl": {
    "h": 63.307,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.95174,
    "c": 0.15042,
    "h": 111.8
  },
  "luminance": 0.88034
}

Semantic roles & 50–950 ramp

primary
#F2F97A
secondary
#4A42D5
accent
#00E60D
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #F2F97A

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

Preview Lab → · Contrast checker → · Palette generator →

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