#F2F296#F2F296

#F2F296 is a very light, moderate yellow. Relative luminance 0.846; OKLCH L 94.1% C 0.114 H 108.4°. Best body text is #000000 at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#F2F296
RGBrgb(242, 242, 150)
HSLhsl(60, 78%, 77%)
HSVhsv(60, 38%, 95%)
CMYKcmyk(0%, 0%, 38%, 5.1%)
CIE-LABlab(93.70, -13.14, 44.39)
CIE-LCHlch(93.70, 46.29, 106.49°)
OKLaboklab(94.11% -0.036 0.1083)
OKLCHoklch(94.11% 0.114 108.4)
XYZxyz(73.8761, 84.5850, 41.2831)
Luminance0.8458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F296 #9696F2
analogous
#F2C496 #F2F296 #C4F296
triadic
#F2F296 #96F2F2 #F296F2
tetradic
#F2F296 #96F2C4 #9696F2 #F296C4
square
#F2F296 #96F2C4 #9696F2 #F296C4
split-complementary
#F2F296 #96C4F2 #C496F2
monochromatic
#E5E529 #EBEB60 #F2F296 #F9F9CC #FCFCE4

Accessibility & contrast

On white

1.17
#F2F296 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.92
#F2F296 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F296
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F296#FFFFFF#000000##000000
##F2F2961.001.1717.9217.92
#FFFFFF1.171.0021.0021.00
#00000017.9221.001.001.00
##00000017.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB8F
Deuteranopia (green-blind)
#FFEF9A
Tritanopia (blue-blind)
#FEE7DB
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #f2f296;
/* rgb */ color: rgb(242, 242, 150);
/* oklch */ color: oklch(94.1% 0.114 108.4);
Tailwind
colors: {
  custom: {
    50: '#f7f6b6',
    500: '#f2f296',
    950: '#000000',
  },
}
SCSS
$custom: #f2f296;
$custom-light: #f7f6b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f296",
  "rgb": {
    "r": 242,
    "g": 242,
    "b": 150
  },
  "hsl": {
    "h": 60,
    "s": 77.966,
    "l": 76.863
  },
  "oklch": {
    "l": 0.94112,
    "c": 0.11412,
    "h": 108.4
  },
  "luminance": 0.84584
}

Semantic roles & 50–950 ramp

primary
#F2F296
secondary
#5D5DCF
accent
#0BDA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F296

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

Preview Lab → · Contrast checker → · Palette generator →

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