#F2EF98#F2EF98

#F2EF98 is a very light, moderate yellow. Relative luminance 0.829; OKLCH L 93.5% C 0.108 H 106.6°. Best body text is #000000 at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#F2EF98
RGBrgb(242, 239, 152)
HSLhsl(58, 78%, 77%)
HSVhsv(58, 37%, 95%)
CMYKcmyk(0%, 1.2%, 37.2%, 5.1%)
CIE-LABlab(92.96, -11.45, 42.46)
CIE-LCHlch(92.96, 43.97, 105.09°)
OKLaboklab(93.53% -0.031 0.104)
OKLCHoklch(93.53% 0.108 106.6)
XYZxyz(73.1529, 82.8788, 41.8433)
Luminance0.8288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EF98 #989BF2
analogous
#F2C298 #F2EF98 #C8F298
triadic
#F2EF98 #98F2EF #EF98F2
tetradic
#F2EF98 #98F2C2 #989BF2 #F298C8
square
#F2EF98 #98F2C2 #989BF2 #F298C8
split-complementary
#F2EF98 #98C8F2 #C298F2
monochromatic
#E4DE2B #EBE762 #F2EF98 #F9F7CE #FCFBE4

Accessibility & contrast

On white

1.19
#F2EF98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.58
#F2EF98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EF98
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EF98#FFFFFF#000000##000000
##F2EF981.001.1917.5817.58
#FFFFFF1.191.0021.0021.00
#00000017.5821.001.001.00
##00000017.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE992
Deuteranopia (green-blind)
#FFED9C
Tritanopia (blue-blind)
#FEE5D9
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2ef98;
/* rgb */ color: rgb(242, 239, 152);
/* oklch */ color: oklch(93.5% 0.108 106.6);
Tailwind
colors: {
  custom: {
    50: '#f7f4b7',
    500: '#f2ef98',
    950: '#000000',
  },
}
SCSS
$custom: #f2ef98;
$custom-light: #f7f4b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ef98",
  "rgb": {
    "r": 242,
    "g": 239,
    "b": 152
  },
  "hsl": {
    "h": 58,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.93531,
    "c": 0.10849,
    "h": 106.6
  },
  "luminance": 0.82877
}

Semantic roles & 50–950 ramp

primary
#F2EF98
secondary
#5F62D0
accent
#13DA0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2EF98

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

Preview Lab → · Contrast checker → · Palette generator →

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