#F2F97F#F2F97F

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

Color values

HEX#F2F97F
RGBrgb(242, 249, 127)
HSLhsl(63, 91%, 74%)
HSVhsv(63, 49%, 98%)
CMYKcmyk(2.8%, 0%, 49%, 2.4%)
CIE-LABlab(95.23, -18.79, 57.19)
CIE-LCHlch(95.23, 60.20, 108.18°)
OKLaboklab(95.23% -0.0541 0.1353)
OKLCHoklch(95.23% 0.146 111.8)
XYZxyz(74.3258, 88.1623, 33.1762)
Luminance0.8816 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F97F #867FF9
analogous
#F9C37F #F2F97F #B5F97F
triadic
#F2F97F #7FF2F9 #F97FF2
tetradic
#F2F97F #7FF9C3 #867FF9 #F97FB5
square
#F2F97F #7FF9C3 #867FF9 #F97FB5
split-complementary
#F2F97F #7FB5F9 #C37FF9
monochromatic
#E5F20B #ECF645 #F2F97F #F8FCB9 #FCFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2F97F#FFFFFF#000000##000000
##F2F97F1.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)
#FFF074
Deuteranopia (green-blind)
#FFF385
Tritanopia (blue-blind)
#FFEDDD
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f97f;
/* rgb */ color: rgb(242, 249, 127);
/* oklch */ color: oklch(95.2% 0.146 111.8);
Tailwind
colors: {
  custom: {
    50: '#f8fba7',
    500: '#f2f97f',
    950: '#000000',
  },
}
SCSS
$custom: #f2f97f;
$custom-light: #f8fba7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f97f",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 127
  },
  "hsl": {
    "h": 63.443,
    "s": 91.045,
    "l": 73.725
  },
  "oklch": {
    "l": 0.95234,
    "c": 0.14573,
    "h": 111.8
  },
  "luminance": 0.88161
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2F97F

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

Preview Lab → · Contrast checker → · Palette generator →

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