#F2E698#F2E698

#F2E698 is a very light, moderate yellow. Relative luminance 0.777; OKLCH L 91.7% C 0.099 H 100.6°. Best body text is #000000 at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#F2E698
RGBrgb(242, 230, 152)
HSLhsl(52, 78%, 77%)
HSVhsv(52, 37%, 95%)
CMYKcmyk(0%, 5%, 37.2%, 5.1%)
CIE-LABlab(90.66, -6.96, 39.49)
CIE-LCHlch(90.66, 40.10, 100.00°)
OKLaboklab(91.71% -0.0181 0.0971)
OKLCHoklch(91.71% 0.099 100.6)
XYZxyz(70.5834, 77.7398, 40.9868)
Luminance0.7774 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E698 #98A4F2
analogous
#F2B998 #F2E698 #D1F298
triadic
#F2E698 #98F2E6 #E698F2
tetradic
#F2E698 #98F2B9 #98A4F2 #F298D1
square
#F2E698 #98F2B9 #98A4F2 #F298D1
split-complementary
#F2E698 #98D1F2 #B998F2
monochromatic
#E4CC2B #EBD962 #F2E698 #F9F3CE #FCF8E4

Accessibility & contrast

On white

1.27
#F2E698 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.55
#F2E698 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E698
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E698#FFFFFF#000000##000000
##F2E6981.001.2716.5516.55
#FFFFFF1.271.0021.0021.00
#00000016.5521.001.001.00
##00000016.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4E192
Deuteranopia (green-blind)
#F8E79B
Tritanopia (blue-blind)
#FFDCD2
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e698;
/* rgb */ color: rgb(242, 230, 152);
/* oklch */ color: oklch(91.7% 0.099 100.6);
Tailwind
colors: {
  custom: {
    50: '#f7edb7',
    500: '#f2e698',
    950: '#000000',
  },
}
SCSS
$custom: #f2e698;
$custom-light: #f7edb7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e698",
  "rgb": {
    "r": 242,
    "g": 230,
    "b": 152
  },
  "hsl": {
    "h": 52,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.91707,
    "c": 0.09882,
    "h": 100.6
  },
  "luminance": 0.77738
}

Semantic roles & 50–950 ramp

primary
#F2E698
secondary
#5F6ED0
accent
#27DA0C
background
#FFFEFD
surface
#FFFDF8
border
#D7D5D1
text
#171611
muted
#858481

Preview Lab

Preview with #F2E698

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

Preview Lab → · Contrast checker → · Palette generator →

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