#F2ED97#F2ED97

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

Color values

HEX#F2ED97
RGBrgb(242, 237, 151)
HSLhsl(57, 78%, 77%)
HSVhsv(57, 38%, 95%)
CMYKcmyk(0%, 2.1%, 37.6%, 5.1%)
CIE-LABlab(92.43, -10.57, 42.27)
CIE-LCHlch(92.43, 43.57, 104.03°)
OKLaboklab(93.11% -0.0286 0.1035)
OKLCHoklch(93.11% 0.107 105.4)
XYZxyz(72.4891, 81.6816, 41.2197)
Luminance0.8168 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2ED97 #979CF2
analogous
#F2C097 #F2ED97 #CAF297
triadic
#F2ED97 #97F2ED #ED97F2
tetradic
#F2ED97 #97F2C0 #979CF2 #F297CA
square
#F2ED97 #97F2C0 #979CF2 #F297CA
split-complementary
#F2ED97 #97CAF2 #C097F2
monochromatic
#E4DA2A #EBE461 #F2ED97 #F9F6CD #FCFAE4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F2ED97#FFFFFF#000000##000000
##F2ED971.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)
#FBE791
Deuteranopia (green-blind)
#FDEB9B
Tritanopia (blue-blind)
#FEE3D8
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #f2ed97;
/* rgb */ color: rgb(242, 237, 151);
/* oklch */ color: oklch(93.1% 0.107 105.4);
Tailwind
colors: {
  custom: {
    50: '#f7f2b6',
    500: '#f2ed97',
    950: '#000000',
  },
}
SCSS
$custom: #f2ed97;
$custom-light: #f7f2b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ed97",
  "rgb": {
    "r": 242,
    "g": 237,
    "b": 151
  },
  "hsl": {
    "h": 56.703,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.93108,
    "c": 0.10737,
    "h": 105.4
  },
  "luminance": 0.8168
}

Semantic roles & 50–950 ramp

primary
#F2ED97
secondary
#5E64CF
accent
#17DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581

Preview Lab

Preview with #F2ED97

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

Preview Lab → · Contrast checker → · Palette generator →

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