#F2EC97#F2EC97

#F2EC97 is a very light, moderate yellow. Relative luminance 0.811; OKLCH L 92.9% C 0.106 H 104.8°. Best body text is #000000 at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#F2EC97
RGBrgb(242, 236, 151)
HSLhsl(56, 78%, 77%)
HSVhsv(56, 38%, 95%)
CMYKcmyk(0%, 2.5%, 37.6%, 5.1%)
CIE-LABlab(92.18, -10.07, 41.95)
CIE-LCHlch(92.18, 43.14, 103.50°)
OKLaboklab(92.91% -0.0271 0.1027)
OKLCHoklch(92.91% 0.106 104.8)
XYZxyz(72.2004, 81.1042, 41.1235)
Luminance0.8110 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC97 #979DF2
analogous
#F2BF97 #F2EC97 #CBF297
triadic
#F2EC97 #97F2EC #EC97F2
tetradic
#F2EC97 #97F2BF #979DF2 #F297CB
square
#F2EC97 #97F2BF #979DF2 #F297CB
split-complementary
#F2EC97 #97CBF2 #BF97F2
monochromatic
#E4D82A #EBE261 #F2EC97 #F9F6CD #FCFAE4

Accessibility & contrast

On white

1.22
#F2EC97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.22
#F2EC97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC97
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC97#FFFFFF#000000##000000
##F2EC971.001.2217.2217.22
#FFFFFF1.221.0021.0021.00
#00000017.2221.001.001.00
##00000017.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE691
Deuteranopia (green-blind)
#FCEB9A
Tritanopia (blue-blind)
#FEE2D7
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2ec97;
/* rgb */ color: rgb(242, 236, 151);
/* oklch */ color: oklch(92.9% 0.106 104.8);
Tailwind
colors: {
  custom: {
    50: '#f7f2b6',
    500: '#f2ec97',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec97;
$custom-light: #f7f2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec97",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 151
  },
  "hsl": {
    "h": 56.044,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.92905,
    "c": 0.10626,
    "h": 104.8
  },
  "luminance": 0.81103
}

Semantic roles & 50–950 ramp

primary
#F2EC97
secondary
#5E65CF
accent
#19DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2EC97

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

Preview Lab → · Contrast checker → · Palette generator →

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