#F2E997#F2E997

#F2E997 is a very light, moderate yellow. Relative luminance 0.794; OKLCH L 92.3% C 0.103 H 102.8°. Best body text is #000000 at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#F2E997
RGBrgb(242, 233, 151)
HSLhsl(54, 78%, 77%)
HSVhsv(54, 38%, 95%)
CMYKcmyk(0%, 3.7%, 37.6%, 5.1%)
CIE-LABlab(91.41, -8.57, 40.96)
CIE-LCHlch(91.41, 41.85, 101.82°)
OKLaboklab(92.3% -0.0228 0.1005)
OKLCHoklch(92.3% 0.103 102.8)
XYZxyz(71.3439, 79.3912, 40.8380)
Luminance0.7939 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E997 #97A0F2
analogous
#F2BC97 #F2E997 #CEF297
triadic
#F2E997 #97F2E9 #E997F2
tetradic
#F2E997 #97F2BC #97A0F2 #F297CE
square
#F2E997 #97F2BC #97A0F2 #F297CE
split-complementary
#F2E997 #97CEF2 #BC97F2
monochromatic
#E4D22A #EBDD61 #F2E997 #F9F5CD #FCF9E4

Accessibility & contrast

On white

1.24
#F2E997 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.88
#F2E997 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E997
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E997#FFFFFF#000000##000000
##F2E9971.001.2416.8816.88
#FFFFFF1.241.0021.0021.00
#00000016.8821.001.001.00
##00000016.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7E491
Deuteranopia (green-blind)
#FAE99A
Tritanopia (blue-blind)
#FFDFD4
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #f2e997;
/* rgb */ color: rgb(242, 233, 151);
/* oklch */ color: oklch(92.3% 0.103 102.8);
Tailwind
colors: {
  custom: {
    50: '#f7efb6',
    500: '#f2e997',
    950: '#000000',
  },
}
SCSS
$custom: #f2e997;
$custom-light: #f7efb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e997",
  "rgb": {
    "r": 242,
    "g": 233,
    "b": 151
  },
  "hsl": {
    "h": 54.066,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.92297,
    "c": 0.10304,
    "h": 102.8
  },
  "luminance": 0.79389
}

Semantic roles & 50–950 ramp

primary
#F2E997
secondary
#5E69CF
accent
#20DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2E997

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

Preview Lab → · Contrast checker → · Palette generator →

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