#F2F396#F2F396

#F2F396 is a very light, moderate yellow. Relative luminance 0.852; OKLCH L 94.3% C 0.115 H 109.0°. Best body text is #000000 at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#F2F396
RGBrgb(242, 243, 150)
HSLhsl(61, 79%, 77%)
HSVhsv(61, 38%, 95%)
CMYKcmyk(0.4%, 0%, 38.3%, 4.7%)
CIE-LABlab(93.96, -13.64, 44.72)
CIE-LCHlch(93.96, 46.75, 106.96°)
OKLaboklab(94.32% -0.0374 0.109)
OKLCHoklch(94.32% 0.115 109)
XYZxyz(74.1745, 85.1819, 41.3826)
Luminance0.8518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2F396 #9796F3
analogous
#F3C696 #F2F396 #C4F396
triadic
#F2F396 #96F2F3 #F396F2
tetradic
#F2F396 #96F3C6 #9796F3 #F396C4
square
#F2F396 #96F3C6 #9796F3 #F396C4
split-complementary
#F2F396 #96C4F3 #C696F3
monochromatic
#E4E628 #EBED5F #F2F396 #F9F9CD #FCFCE4

Accessibility & contrast

On white

1.16
#F2F396 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.04
#F2F396 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2F396
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2F396#FFFFFF#000000##000000
##F2F3961.001.1618.0418.04
#FFFFFF1.161.0021.0021.00
#00000018.0421.001.001.00
##00000018.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC8F
Deuteranopia (green-blind)
#FFEF9A
Tritanopia (blue-blind)
#FEE8DC
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #f2f396;
/* rgb */ color: rgb(242, 243, 150);
/* oklch */ color: oklch(94.3% 0.115 109.0);
Tailwind
colors: {
  custom: {
    50: '#f7f7b6',
    500: '#f2f396',
    950: '#000000',
  },
}
SCSS
$custom: #f2f396;
$custom-light: #f7f7b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2f396",
  "rgb": {
    "r": 242,
    "g": 243,
    "b": 150
  },
  "hsl": {
    "h": 60.645,
    "s": 79.487,
    "l": 77.059
  },
  "oklch": {
    "l": 0.94317,
    "c": 0.11528,
    "h": 109
  },
  "luminance": 0.8518
}

Semantic roles & 50–950 ramp

primary
#F2F396
secondary
#5E5DD1
accent
#0ADC0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2F396

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

Preview Lab → · Contrast checker → · Palette generator →

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