#FEF77C#FEF77C

#FEF77C is a very light, vivid yellow. Relative luminance 0.890; OKLCH L 95.7% C 0.145 H 105.9°. Best body text is #000000 at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#FEF77C
RGBrgb(254, 247, 124)
HSLhsl(57, 98%, 74%)
HSVhsv(57, 51%, 100%)
CMYKcmyk(0%, 2.8%, 51.2%, 0.4%)
CIE-LABlab(95.60, -13.37, 59.23)
CIE-LCHlch(95.60, 60.72, 102.72°)
OKLaboklab(95.74% -0.0396 0.1393)
OKLCHoklch(95.74% 0.145 105.9)
XYZxyz(77.7740, 89.0499, 32.1563)
Luminance0.8905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF77C #7C83FE
analogous
#FEB67C #FEF77C #C4FE7C
triadic
#FEF77C #7CFEF7 #F77CFE
tetradic
#FEF77C #7CFEB6 #7C83FE #FE7CC4
square
#FEF77C #7CFEB6 #7C83FE #FE7CC4
split-complementary
#FEF77C #7CC4FE #B67CFE
monochromatic
#FDF003 #FEF33F #FEF77C #FEFBB9 #FFFDE1

Accessibility & contrast

On white

1.12
#FEF77C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.81
#FEF77C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF77C
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF77C#FFFFFF#000000##000000
##FEF77C1.001.1218.8118.81
#FFFFFF1.121.0021.0021.00
#00000018.8121.001.001.00
##00000018.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF70
Deuteranopia (green-blind)
#FFF582
Tritanopia (blue-blind)
#FFE9DB
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef77c;
/* rgb */ color: rgb(254, 247, 124);
/* oklch */ color: oklch(95.7% 0.145 105.9);
Tailwind
colors: {
  custom: {
    50: '#fff9a5',
    500: '#fef77c',
    950: '#000000',
  },
}
SCSS
$custom: #fef77c;
$custom-light: #fff9a5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef77c",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 124
  },
  "hsl": {
    "h": 56.769,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.95744,
    "c": 0.14483,
    "h": 105.9
  },
  "luminance": 0.89048
}

Semantic roles & 50–950 ramp

primary
#FEF77C
secondary
#424ADC
accent
#0CE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF77C

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

Preview Lab → · Contrast checker → · Palette generator →

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