#F2F97E#F2F97E

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

Color values

HEX#F2F97E
RGBrgb(242, 249, 126)
HSLhsl(63, 91%, 74%)
HSVhsv(63, 49%, 98%)
CMYKcmyk(2.8%, 0%, 49.4%, 2.4%)
CIE-LABlab(95.22, -18.87, 57.64)
CIE-LCHlch(95.22, 60.65, 108.13°)
OKLaboklab(95.22% -0.0544 0.1362)
OKLCHoklch(95.22% 0.147 111.8)
XYZxyz(74.2610, 88.1364, 32.8347)
Luminance0.8813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F97E #857EF9
analogous
#F9C27E #F2F97E #B4F97E
triadic
#F2F97E #7EF2F9 #F97EF2
tetradic
#F2F97E #7EF9C2 #857EF9 #F97EB4
square
#F2F97E #7EF9C2 #857EF9 #F97EB4
split-complementary
#F2F97E #7EB4F9 #C27EF9
monochromatic
#E4F10B #ECF644 #F2F97E #F8FCB8 #FCFEE2

Accessibility & contrast

On white

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

On black

18.63
#F2F97E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F97E
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F97E#FFFFFF#000000##000000
##F2F97E1.001.1318.6318.63
#FFFFFF1.131.0021.0021.00
#00000018.6321.001.001.00
##00000018.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF73
Deuteranopia (green-blind)
#FFF384
Tritanopia (blue-blind)
#FFEDDD
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f97e;
/* rgb */ color: rgb(242, 249, 126);
/* oklch */ color: oklch(95.2% 0.147 111.8);
Tailwind
colors: {
  custom: {
    50: '#f8fba6',
    500: '#f2f97e',
    950: '#000000',
  },
}
SCSS
$custom: #f2f97e;
$custom-light: #f8fba6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f97e",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 126
  },
  "hsl": {
    "h": 63.415,
    "s": 91.111,
    "l": 73.529
  },
  "oklch": {
    "l": 0.95222,
    "c": 0.14668,
    "h": 111.8
  },
  "luminance": 0.88135
}

Semantic roles & 50–950 ramp

primary
#F2F97E
secondary
#4E45D6
accent
#00E60D
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#171710
muted
#858580

Preview Lab

Preview with #F2F97E

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

Preview Lab → · Contrast checker → · Palette generator →

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