#F2ED98#F2ED98

#F2ED98 is a very light, moderate yellow. Relative luminance 0.817; OKLCH L 93.1% C 0.106 H 105.4°. Best body text is #000000 at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#F2ED98
RGBrgb(242, 237, 152)
HSLhsl(57, 78%, 77%)
HSVhsv(57, 37%, 95%)
CMYKcmyk(0%, 2.1%, 37.2%, 5.1%)
CIE-LABlab(92.45, -10.46, 41.80)
CIE-LCHlch(92.45, 43.09, 104.05°)
OKLaboklab(93.12% -0.0282 0.1025)
OKLCHoklch(93.12% 0.106 105.4)
XYZxyz(72.5707, 81.7143, 41.6492)
Luminance0.8171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED98 #989DF2
analogous
#F2C098 #F2ED98 #CAF298
triadic
#F2ED98 #98F2ED #ED98F2
tetradic
#F2ED98 #98F2C0 #989DF2 #F298CA
square
#F2ED98 #98F2C0 #989DF2 #F298CA
split-complementary
#F2ED98 #98CAF2 #C098F2
monochromatic
#E4DA2B #EBE462 #F2ED98 #F9F6CE #FCFAE4

Accessibility & contrast

On white

1.21
#F2ED98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.34
#F2ED98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2ED98
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2ED98#FFFFFF#000000##000000
##F2ED981.001.2117.3417.34
#FFFFFF1.211.0021.0021.00
#00000017.3421.001.001.00
##00000017.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBE792
Deuteranopia (green-blind)
#FDEB9B
Tritanopia (blue-blind)
#FEE3D8
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2ed98;
/* rgb */ color: rgb(242, 237, 152);
/* oklch */ color: oklch(93.1% 0.106 105.4);
Tailwind
colors: {
  custom: {
    50: '#f7f2b7',
    500: '#f2ed98',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed98;
$custom-light: #f7f2b7;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed98",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 152
  },
  "hsl": {
    "h": 56.667,
    "s": 77.586,
    "l": 77.255
  },
  "oklch": {
    "l": 0.93124,
    "c": 0.10625,
    "h": 105.4
  },
  "luminance": 0.81713
}

Semantic roles & 50–950 ramp

primary
#F2ED98
secondary
#5F65D0
accent
#17DA0C
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2ED98

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

Preview Lab → · Contrast checker → · Palette generator →

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