#FEF77D#FEF77D

#FEF77D is a very light, vivid yellow. Relative luminance 0.891; OKLCH L 95.8% C 0.144 H 105.8°. Best body text is #000000 at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#FEF77D
RGBrgb(254, 247, 125)
HSLhsl(57, 98%, 74%)
HSVhsv(57, 51%, 100%)
CMYKcmyk(0%, 2.8%, 50.8%, 0.4%)
CIE-LABlab(95.61, -13.29, 58.79)
CIE-LCHlch(95.61, 60.27, 102.74°)
OKLaboklab(95.76% -0.0393 0.1384)
OKLCHoklch(95.76% 0.144 105.8)
XYZxyz(77.8376, 89.0753, 32.4911)
Luminance0.8907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF77D #7D84FE
analogous
#FEB77D #FEF77D #C5FE7D
triadic
#FEF77D #7DFEF7 #F77DFE
tetradic
#FEF77D #7DFEB7 #7D84FE #FE7DC5
square
#FEF77D #7DFEB7 #7D84FE #FE7DC5
split-complementary
#FEF77D #7DC5FE #B77DFE
monochromatic
#FDF004 #FEF340 #FEF77D #FEFBBA #FFFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF77D#FFFFFF#000000##000000
##FEF77D1.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)
#FFEF72
Deuteranopia (green-blind)
#FFF583
Tritanopia (blue-blind)
#FFE9DB
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef77d;
/* rgb */ color: rgb(254, 247, 125);
/* oklch */ color: oklch(95.8% 0.144 105.8);
Tailwind
colors: {
  custom: {
    50: '#fff9a5',
    500: '#fef77d',
    950: '#000000',
  },
}
SCSS
$custom: #fef77d;
$custom-light: #fff9a5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef77d",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 125
  },
  "hsl": {
    "h": 56.744,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.95756,
    "c": 0.14391,
    "h": 105.8
  },
  "luminance": 0.89073
}

Semantic roles & 50–950 ramp

primary
#FEF77D
secondary
#434BDC
accent
#0CE600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF77D

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

Preview Lab → · Contrast checker → · Palette generator →

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