#FEF477#FEF477

#FEF477 is a very light, vivid yellow. Relative luminance 0.871; OKLCH L 95.1% C 0.146 H 104.7°. Best body text is #000000 at 18.42:1 contrast (WCAG AA passes).

Color values

HEX#FEF477
RGBrgb(254, 244, 119)
HSLhsl(56, 99%, 73%)
HSVhsv(56, 53%, 100%)
CMYKcmyk(0%, 3.9%, 53.1%, 0.4%)
CIE-LABlab(94.78, -12.30, 60.53)
CIE-LCHlch(94.78, 61.77, 101.49°)
OKLaboklab(95.08% -0.0371 0.1417)
OKLCHoklch(95.08% 0.146 104.7)
XYZxyz(76.5558, 87.1065, 30.2298)
Luminance0.8710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF477 #7781FE
analogous
#FEB177 #FEF477 #C4FE77
triadic
#FEF477 #77FEF4 #F477FE
tetradic
#FEF477 #77FEB1 #7781FE #FE77C4
square
#FEF477 #77FEB1 #7781FE #FE77C4
split-complementary
#FEF477 #77C4FE #B177FE
monochromatic
#F9E602 #FEEF3A #FEF477 #FEF9B4 #FFFDE1

Accessibility & contrast

On white

1.14
#FEF477 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.42
#FEF477 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF477
18.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF477#FFFFFF#000000##000000
##FEF4771.001.1418.4218.42
#FFFFFF1.141.0021.0021.00
#00000018.4221.001.001.00
##00000018.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED6B
Deuteranopia (green-blind)
#FFF37D
Tritanopia (blue-blind)
#FFE6D8
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef477;
/* rgb */ color: rgb(254, 244, 119);
/* oklch */ color: oklch(95.1% 0.146 104.7);
Tailwind
colors: {
  custom: {
    50: '#fff7a2',
    500: '#fef477',
    950: '#000000',
  },
}
SCSS
$custom: #fef477;
$custom-light: #fff7a2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef477",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 119
  },
  "hsl": {
    "h": 55.556,
    "s": 98.54,
    "l": 73.137
  },
  "oklch": {
    "l": 0.95077,
    "c": 0.14642,
    "h": 104.7
  },
  "luminance": 0.87104
}

Semantic roles & 50–950 ramp

primary
#FEF477
secondary
#3E49DC
accent
#11E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF477

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

Preview Lab → · Contrast checker → · Palette generator →

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