#F2EC98#F2EC98

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

Color values

HEX#F2EC98
RGBrgb(242, 236, 152)
HSLhsl(56, 78%, 77%)
HSVhsv(56, 37%, 95%)
CMYKcmyk(0%, 2.5%, 37.2%, 5.1%)
CIE-LABlab(92.19, -9.96, 41.47)
CIE-LCHlch(92.19, 42.65, 103.50°)
OKLaboklab(92.92% -0.0268 0.1017)
OKLCHoklch(92.92% 0.105 104.7)
XYZxyz(72.2819, 81.1368, 41.5530)
Luminance0.8114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EC98 #989EF2
analogous
#F2BF98 #F2EC98 #CBF298
triadic
#F2EC98 #98F2EC #EC98F2
tetradic
#F2EC98 #98F2BF #989EF2 #F298CB
square
#F2EC98 #98F2BF #989EF2 #F298CB
split-complementary
#F2EC98 #98CBF2 #BF98F2
monochromatic
#E4D82B #EBE262 #F2EC98 #F9F6CE #FCFAE4

Accessibility & contrast

On white

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

On black

17.23
#F2EC98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EC98
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EC98#FFFFFF#000000##000000
##F2EC981.001.2217.2317.23
#FFFFFF1.221.0021.0021.00
#00000017.2321.001.001.00
##00000017.2321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #f2ec98;
/* rgb */ color: rgb(242, 236, 152);
/* oklch */ color: oklch(92.9% 0.105 104.7);
Tailwind
colors: {
  custom: {
    50: '#f7f2b7',
    500: '#f2ec98',
    950: '#000000',
  },
}
SCSS
$custom: #f2ec98;
$custom-light: #f7f2b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ec98",
  "rgb": {
    "r": 242,
    "g": 236,
    "b": 152
  },
  "hsl": {
    "h": 56,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.92921,
    "c": 0.10515,
    "h": 104.7
  },
  "luminance": 0.81135
}

Semantic roles & 50–950 ramp

primary
#F2EC98
secondary
#5F66D0
accent
#19DA0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2EC98

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

Preview Lab → · Contrast checker → · Palette generator →

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