#F2EF97#F2EF97

#F2EF97 is a very light, moderate yellow. Relative luminance 0.828; OKLCH L 93.5% C 0.110 H 106.7°. Best body text is #000000 at 17.57:1 contrast (WCAG AA passes).

Color values

HEX#F2EF97
RGBrgb(242, 239, 151)
HSLhsl(58, 78%, 77%)
HSVhsv(58, 38%, 95%)
CMYKcmyk(0%, 1.2%, 37.6%, 5.1%)
CIE-LABlab(92.95, -11.56, 42.93)
CIE-LCHlch(92.95, 44.46, 105.07°)
OKLaboklab(93.52% -0.0314 0.105)
OKLCHoklch(93.52% 0.11 106.7)
XYZxyz(73.0714, 82.8462, 41.4138)
Luminance0.8285 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2EF97 #979AF2
analogous
#F2C297 #F2EF97 #C8F297
triadic
#F2EF97 #97F2EF #EF97F2
tetradic
#F2EF97 #97F2C2 #979AF2 #F297C8
square
#F2EF97 #97F2C2 #979AF2 #F297C8
split-complementary
#F2EF97 #97C8F2 #C297F2
monochromatic
#E4DE2A #EBE761 #F2EF97 #F9F7CD #FCFBE4

Accessibility & contrast

On white

1.20
#F2EF97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.57
#F2EF97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2EF97
17.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2EF97#FFFFFF#000000##000000
##F2EF971.001.2017.5717.57
#FFFFFF1.201.0021.0021.00
#00000017.5721.001.001.00
##00000017.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDE990
Deuteranopia (green-blind)
#FFED9B
Tritanopia (blue-blind)
#FEE4D9
Achromatopsia (no color)
#EBEBEB

Design tokens & code

CSS
--color: #f2ef97;
/* rgb */ color: rgb(242, 239, 151);
/* oklch */ color: oklch(93.5% 0.110 106.7);
Tailwind
colors: {
  custom: {
    50: '#f7f4b6',
    500: '#f2ef97',
    950: '#000000',
  },
}
SCSS
$custom: #f2ef97;
$custom-light: #f7f4b6;
$custom-dark: #000000;
JSON
{
  "hex": "#f2ef97",
  "rgb": {
    "r": 242,
    "g": 239,
    "b": 151
  },
  "hsl": {
    "h": 58.022,
    "s": 77.778,
    "l": 77.059
  },
  "oklch": {
    "l": 0.93515,
    "c": 0.1096,
    "h": 106.7
  },
  "luminance": 0.82845
}

Semantic roles & 50–950 ramp

primary
#F2EF97
secondary
#5E62CF
accent
#12DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171711
muted
#858581

Preview Lab

Preview with #F2EF97

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

Preview Lab → · Contrast checker → · Palette generator →

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