#F2E797#F2E797

#F2E797 is a very light, moderate yellow. Relative luminance 0.783; OKLCH L 91.9% C 0.101 H 101.4°. Best body text is #000000 at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#F2E797
RGBrgb(242, 231, 151)
HSLhsl(53, 78%, 77%)
HSVhsv(53, 38%, 95%)
CMYKcmyk(0%, 4.5%, 37.6%, 5.1%)
CIE-LABlab(90.90, -7.57, 40.30)
CIE-LCHlch(90.90, 41.01, 100.64°)
OKLaboklab(91.89% -0.02 0.099)
OKLCHoklch(91.89% 0.101 101.4)
XYZxyz(70.7809, 78.2653, 40.6503)
Luminance0.7826 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E797 #97A2F2
analogous
#F2BA97 #F2E797 #D0F297
triadic
#F2E797 #97F2E7 #E797F2
tetradic
#F2E797 #97F2BA #97A2F2 #F297D0
square
#F2E797 #97F2BA #97A2F2 #F297D0
split-complementary
#F2E797 #97D0F2 #BA97F2
monochromatic
#E4CE2A #EBDA61 #F2E797 #F9F4CD #FCF9E4

Accessibility & contrast

On white

1.26
#F2E797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.65
#F2E797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E797
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E797#FFFFFF#000000##000000
##F2E7971.001.2616.6516.65
#FFFFFF1.261.0021.0021.00
#00000016.6521.001.001.00
##00000016.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F5E291
Deuteranopia (green-blind)
#F9E79A
Tritanopia (blue-blind)
#FFDDD3
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f2e797;
/* rgb */ color: rgb(242, 231, 151);
/* oklch */ color: oklch(91.9% 0.101 101.4);
Tailwind
colors: {
  custom: {
    50: '#f7eeb6',
    500: '#f2e797',
    950: '#000000',
  },
}
SCSS
$custom: #f2e797;
$custom-light: #f7eeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e797",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 52.747,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.91892,
    "c": 0.10095,
    "h": 101.4
  },
  "luminance": 0.78263
}

Semantic roles & 50–950 ramp

primary
#F2E797
secondary
#5E6CCF
accent
#24DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2E797

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

Preview Lab → · Contrast checker → · Palette generator →

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