#F2E778#F2E778

#F2E778 is a very light, vivid yellow. Relative luminance 0.774; OKLCH L 91.4% C 0.133 H 103.6°. Best body text is #000000 at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#F2E778
RGBrgb(242, 231, 120)
HSLhsl(55, 82%, 71%)
HSVhsv(55, 50%, 95%)
CMYKcmyk(0%, 4.5%, 50.4%, 5.1%)
CIE-LABlab(90.50, -10.58, 54.81)
CIE-LCHlch(90.50, 55.82, 100.92°)
OKLaboklab(91.44% -0.0313 0.1295)
OKLCHoklch(91.44% 0.133 103.6)
XYZxyz(68.5860, 77.3873, 29.0901)
Luminance0.7739 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E778 #7883F2
analogous
#F2AA78 #F2E778 #C0F278
triadic
#F2E778 #78F2E7 #E778F2
tetradic
#F2E778 #78F2AA #7883F2 #F278C0
square
#F2E778 #78F2AA #7883F2 #F278C0
split-complementary
#F2E778 #78C0F2 #AA78F2
monochromatic
#DBC915 #EDDD40 #F2E778 #F7F1B0 #FCFAE3

Accessibility & contrast

On white

1.27
#F2E778 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.48
#F2E778 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E778
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E778#FFFFFF#000000##000000
##F2E7781.001.2716.4816.48
#FFFFFF1.271.0021.0021.00
#00000016.4821.001.001.00
##00000016.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E06E
Deuteranopia (green-blind)
#FCE67D
Tritanopia (blue-blind)
#FFDACD
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e778;
/* rgb */ color: rgb(242, 231, 120);
/* oklch */ color: oklch(91.4% 0.133 103.6);
Tailwind
colors: {
  custom: {
    50: '#f8eea1',
    500: '#f2e778',
    950: '#000000',
  },
}
SCSS
$custom: #f2e778;
$custom-light: #f8eea1;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e778",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 120
  },
  "hsl": {
    "h": 54.59,
    "s": 82.432,
    "l": 70.98
  },
  "oklch": {
    "l": 0.91444,
    "c": 0.13325,
    "h": 103.6
  },
  "luminance": 0.77385
}

Semantic roles & 50–950 ramp

primary
#F2E778
secondary
#424ECC
accent
#1ADF07
background
#FFFEFC
surface
#FFFDF5
border
#D7D5CF
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E778

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

Preview Lab → · Contrast checker → · Palette generator →

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