#F2F97B#F2F97B

#F2F97B 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.61:1 contrast (WCAG AA passes).

Color values

HEX#F2F97B
RGBrgb(242, 249, 123)
HSLhsl(63, 91%, 73%)
HSVhsv(63, 51%, 98%)
CMYKcmyk(2.8%, 0%, 50.6%, 2.4%)
CIE-LABlab(95.19, -19.13, 58.96)
CIE-LCHlch(95.19, 61.99, 107.98°)
OKLaboklab(95.19% -0.0555 0.1388)
OKLCHoklch(95.19% 0.149 111.8)
XYZxyz(74.0703, 88.0601, 31.8304)
Luminance0.8806 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F97B #827BF9
analogous
#F9C17B #F2F97B #B3F97B
triadic
#F2F97B #7BF2F9 #F97BF2
tetradic
#F2F97B #7BF9C1 #827BF9 #F97BB3
square
#F2F97B #7BF9C1 #827BF9 #F97BB3
split-complementary
#F2F97B #7BB3F9 #C17BF9
monochromatic
#E2EF0B #ECF640 #F2F97B #F8FCB6 #FCFEE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2F97B#FFFFFF#000000##000000
##F2F97B1.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)
#FFEF6F
Deuteranopia (green-blind)
#FFF382
Tritanopia (blue-blind)
#FFECDC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #f2f97b;
/* rgb */ color: rgb(242, 249, 123);
/* oklch */ color: oklch(95.2% 0.149 111.8);
Tailwind
colors: {
  custom: {
    50: '#f8fba4',
    500: '#f2f97b',
    950: '#000000',
  },
}
SCSS
$custom: #f2f97b;
$custom-light: #f8fba4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f97b",
  "rgb": {
    "r": 242,
    "g": 249,
    "b": 123
  },
  "hsl": {
    "h": 63.333,
    "s": 91.304,
    "l": 72.941
  },
  "oklch": {
    "l": 0.95186,
    "c": 0.14949,
    "h": 111.8
  },
  "luminance": 0.88059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #F2F97B

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

Preview Lab → · Contrast checker → · Palette generator →

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