#F2F596#F2F596

#F2F596 is a very light, moderate yellow. Relative luminance 0.864; OKLCH L 94.7% C 0.118 H 110.0°. Best body text is #000000 at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#F2F596
RGBrgb(242, 245, 150)
HSLhsl(62, 83%, 77%)
HSVhsv(62, 39%, 96%)
CMYKcmyk(1.2%, 0%, 38.8%, 3.9%)
CIE-LABlab(94.48, -14.62, 45.37)
CIE-LCHlch(94.48, 47.67, 107.85°)
OKLaboklab(94.73% -0.0402 0.1105)
OKLCHoklch(94.73% 0.118 110)
XYZxyz(74.7763, 86.3854, 41.5832)
Luminance0.8638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F596 #9996F5
analogous
#F5C996 #F2F596 #C2F596
triadic
#F2F596 #96F2F5 #F596F2
tetradic
#F2F596 #96F5C9 #9996F5 #F596C2
square
#F2F596 #96F5C9 #9996F5 #F596C2
split-complementary
#F2F596 #96C2F5 #C996F5
monochromatic
#E4EA26 #EBF05E #F2F596 #F9FACE #FCFCE3

Accessibility & contrast

On white

1.15
#F2F596 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.28
#F2F596 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F596
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F596#FFFFFF#000000##000000
##F2F5961.001.1518.2818.28
#FFFFFF1.151.0021.0021.00
#00000018.2821.001.001.00
##00000018.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED8F
Deuteranopia (green-blind)
#FFF19A
Tritanopia (blue-blind)
#FEEADE
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f2f596;
/* rgb */ color: rgb(242, 245, 150);
/* oklch */ color: oklch(94.7% 0.118 110.0);
Tailwind
colors: {
  custom: {
    50: '#f8f8b6',
    500: '#f2f596',
    950: '#000000',
  },
}
SCSS
$custom: #f2f596;
$custom-light: #f8f8b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f596",
  "rgb": {
    "r": 242,
    "g": 245,
    "b": 150
  },
  "hsl": {
    "h": 61.895,
    "s": 82.609,
    "l": 77.451
  },
  "oklch": {
    "l": 0.94727,
    "c": 0.11762,
    "h": 110
  },
  "luminance": 0.86384
}

Semantic roles & 50–950 ramp

primary
#F2F596
secondary
#605CD3
accent
#06DF0D
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F596

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

Preview Lab → · Contrast checker → · Palette generator →

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