#F2EA97#F2EA97

#F2EA97 is a very light, moderate yellow. Relative luminance 0.800; OKLCH L 92.5% C 0.104 H 103.5°. Best body text is #000000 at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#F2EA97
RGBrgb(242, 234, 151)
HSLhsl(55, 78%, 77%)
HSVhsv(55, 38%, 95%)
CMYKcmyk(0%, 3.3%, 37.6%, 5.1%)
CIE-LABlab(91.67, -9.07, 41.29)
CIE-LCHlch(91.67, 42.27, 102.39°)
OKLaboklab(92.5% -0.0243 0.1012)
OKLCHoklch(92.5% 0.104 103.5)
XYZxyz(71.6278, 79.9590, 40.9326)
Luminance0.7996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EA97 #979FF2
analogous
#F2BD97 #F2EA97 #CDF297
triadic
#F2EA97 #97F2EA #EA97F2
tetradic
#F2EA97 #97F2BD #979FF2 #F297CD
square
#F2EA97 #97F2BD #979FF2 #F297CD
split-complementary
#F2EA97 #97CDF2 #BD97F2
monochromatic
#E4D42A #EBDF61 #F2EA97 #F9F5CD #FCFAE4

Accessibility & contrast

On white

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

On black

16.99
#F2EA97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EA97
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EA97#FFFFFF#000000##000000
##F2EA971.001.2416.9916.99
#FFFFFF1.241.0021.0021.00
#00000016.9921.001.001.00
##00000016.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E491
Deuteranopia (green-blind)
#FBE99A
Tritanopia (blue-blind)
#FFE0D5
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #f2ea97;
/* rgb */ color: rgb(242, 234, 151);
/* oklch */ color: oklch(92.5% 0.104 103.5);
Tailwind
colors: {
  custom: {
    50: '#f7f0b6',
    500: '#f2ea97',
    950: '#000000',
  },
}
SCSS
$custom: #f2ea97;
$custom-light: #f7f0b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ea97",
  "rgb": {
    "r": 242,
    "g": 234,
    "b": 151
  },
  "hsl": {
    "h": 54.725,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.92499,
    "c": 0.1041,
    "h": 103.5
  },
  "luminance": 0.79957
}

Semantic roles & 50–950 ramp

primary
#F2EA97
secondary
#5E68CF
accent
#1EDA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2EA97

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

Preview Lab → · Contrast checker → · Palette generator →

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