#F2E77C#F2E77C

#F2E77C is a very light, vivid yellow. Relative luminance 0.775; OKLCH L 91.5% C 0.129 H 103.4°. Best body text is #000000 at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#F2E77C
RGBrgb(242, 231, 124)
HSLhsl(54, 82%, 72%)
HSVhsv(54, 49%, 95%)
CMYKcmyk(0%, 4.5%, 48.8%, 5.1%)
CIE-LABlab(90.55, -10.23, 52.99)
CIE-LCHlch(90.55, 53.97, 100.93°)
OKLaboklab(91.5% -0.0299 0.1259)
OKLCHoklch(91.5% 0.129 103.4)
XYZxyz(68.8338, 77.4865, 30.3953)
Luminance0.7748 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F2E77C #7C87F2
analogous
#F2AC7C #F2E77C #C2F27C
triadic
#F2E77C #7CF2E7 #E77CF2
tetradic
#F2E77C #7CF2AC #7C87F2 #F27CC2
square
#F2E77C #7CF2AC #7C87F2 #F27CC2
split-complementary
#F2E77C #7CC2F2 #AC7CF2
monochromatic
#DECB16 #ECDD44 #F2E77C #F8F1B4 #FCFAE3

Accessibility & contrast

On white

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

On black

16.50
#F2E77C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F2E77C
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F2E77C#FFFFFF#000000##000000
##F2E77C1.001.2716.5016.50
#FFFFFF1.271.0021.0021.00
#00000016.5021.001.001.00
##00000016.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8E173
Deuteranopia (green-blind)
#FBE781
Tritanopia (blue-blind)
#FFDACE
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f2e77c;
/* rgb */ color: rgb(242, 231, 124);
/* oklch */ color: oklch(91.5% 0.129 103.4);
Tailwind
colors: {
  custom: {
    50: '#f8eea4',
    500: '#f2e77c',
    950: '#000000',
  },
}
SCSS
$custom: #f2e77c;
$custom-light: #f8eea4;
$custom-dark: #000000;
JSON
{
  "hex": "#f2e77c",
  "rgb": {
    "r": 242,
    "g": 231,
    "b": 124
  },
  "hsl": {
    "h": 54.407,
    "s": 81.944,
    "l": 71.765
  },
  "oklch": {
    "l": 0.91495,
    "c": 0.12937,
    "h": 103.4
  },
  "luminance": 0.77484
}

Semantic roles & 50–950 ramp

primary
#F2E77C
secondary
#4552CD
accent
#1BDE07
background
#FFFEFC
surface
#FFFDF6
border
#D7D5D0
text
#18160F
muted
#868480

Preview Lab

Preview with #F2E77C

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

Preview Lab → · Contrast checker → · Palette generator →

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