#F2F97C#F2F97C

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

Color values

HEX#F2F97C
RGBrgb(242, 249, 124)
HSLhsl(63, 91%, 73%)
HSVhsv(63, 50%, 98%)
CMYKcmyk(2.8%, 0%, 50.2%, 2.4%)
CIE-LABlab(95.20, -19.05, 58.52)
CIE-LCHlch(95.20, 61.54, 108.03°)
OKLaboklab(95.2% -0.0551 0.138)
OKLCHoklch(95.2% 0.149 111.8)
XYZxyz(74.1332, 88.0853, 32.1618)
Luminance0.8808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F97C #837CF9
analogous
#F9C17C #F2F97C #B3F97C
triadic
#F2F97C #7CF2F9 #F97CF2
tetradic
#F2F97C #7CF9C1 #837CF9 #F97CB3
square
#F2F97C #7CF9C1 #837CF9 #F97CB3
split-complementary
#F2F97C #7CB3F9 #C17CF9
monochromatic
#E3F00B #ECF641 #F2F97C #F8FCB7 #FCFEE2

Accessibility & contrast

On white

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

On black

18.62
#F2F97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F97C
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F97C#FFFFFF#000000##000000
##F2F97C1.001.1318.6218.62
#FFFFFF1.131.0021.0021.00
#00000018.6221.001.001.00
##00000018.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF70
Deuteranopia (green-blind)
#FFF383
Tritanopia (blue-blind)
#FFECDD
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f97c;
/* rgb */ color: rgb(242, 249, 124);
/* oklch */ color: oklch(95.2% 0.149 111.8);
Tailwind
colors: {
  custom: {
    50: '#f8fba5',
    500: '#f2f97c',
    950: '#000000',
  },
}
SCSS
$custom: #f2f97c;
$custom-light: #f8fba5;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f97c",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 124
  },
  "hsl": {
    "h": 63.36,
    "s": 91.241,
    "l": 73.137
  },
  "oklch": {
    "l": 0.95198,
    "c": 0.14856,
    "h": 111.8
  },
  "luminance": 0.88084
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2F97C

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

Preview Lab → · Contrast checker → · Palette generator →

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