#F2E798#F2E798

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

Color values

HEX#F2E798
RGBrgb(242, 231, 152)
HSLhsl(53, 78%, 77%)
HSVhsv(53, 37%, 95%)
CMYKcmyk(0%, 4.5%, 37.2%, 5.1%)
CIE-LABlab(90.92, -7.46, 39.82)
CIE-LCHlch(90.92, 40.51, 100.62°)
OKLaboklab(91.91% -0.0196 0.0979)
OKLCHoklch(91.91% 0.1 101.3)
XYZxyz(70.8625, 78.2979, 41.0798)
Luminance0.7830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E798 #98A3F2
analogous
#F2BA98 #F2E798 #D0F298
triadic
#F2E798 #98F2E7 #E798F2
tetradic
#F2E798 #98F2BA #98A3F2 #F298D0
square
#F2E798 #98F2BA #98A3F2 #F298D0
split-complementary
#F2E798 #98D0F2 #BA98F2
monochromatic
#E4CE2B #EBDA62 #F2E798 #F9F4CE #FCF9E4

Accessibility & contrast

On white

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

On black

16.66
#F2E798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E798
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E798#FFFFFF#000000##000000
##F2E7981.001.2616.6616.66
#FFFFFF1.261.0021.0021.00
#00000016.6621.001.001.00
##00000016.6621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2e798;
/* rgb */ color: rgb(242, 231, 152);
/* oklch */ color: oklch(91.9% 0.100 101.3);
Tailwind
colors: {
  custom: {
    50: '#f7eeb7',
    500: '#f2e798',
    950: '#000000',
  },
}
SCSS
$custom: #f2e798;
$custom-light: #f7eeb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e798",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 152
  },
  "hsl": {
    "h": 52.667,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.91909,
    "c": 0.09984,
    "h": 101.3
  },
  "luminance": 0.78296
}

Semantic roles & 50–950 ramp

primary
#F2E798
secondary
#5F6CD0
accent
#25DA0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2E798

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

Preview Lab → · Contrast checker → · Palette generator →

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