#FEF59F#FEF59F

#FEF59F is a very light, moderate yellow. Relative luminance 0.889; OKLCH L 95.8% C 0.107 H 103.1°. Best body text is #000000 at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#FEF59F
RGBrgb(254, 245, 159)
HSLhsl(54, 98%, 81%)
HSVhsv(54, 37%, 100%)
CMYKcmyk(0%, 3.5%, 37.4%, 0.4%)
CIE-LABlab(95.53, -9.07, 42.50)
CIE-LCHlch(95.53, 43.46, 102.05°)
OKLaboklab(95.83% -0.0242 0.1043)
OKLCHoklch(95.83% 0.107 103.1)
XYZxyz(79.7847, 88.8808, 45.7470)
Luminance0.8888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF59F #9FA8FE
analogous
#FEC59F #FEF59F #D7FE9F
triadic
#FEF59F #9FFEF5 #F59FFE
tetradic
#FEF59F #9FFEC5 #9FA8FE #FE9FD7
square
#FEF59F #9FFEC5 #9FA8FE #FE9FD7
split-complementary
#FEF59F #9FD7FE #C59FFE
monochromatic
#FDE826 #FDEF62 #FEF59F #FFFBDC #FFFCE1

Accessibility & contrast

On white

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

On black

18.78
#FEF59F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF59F
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF59F#FFFFFF#000000##000000
##FEF59F1.001.1218.7818.78
#FFFFFF1.121.0021.0021.00
#00000018.7821.001.001.00
##00000018.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF99
Deuteranopia (green-blind)
#FFF4A2
Tritanopia (blue-blind)
#FFEADF
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef59f;
/* rgb */ color: rgb(254, 245, 159);
/* oklch */ color: oklch(95.8% 0.107 103.1);
Tailwind
colors: {
  custom: {
    50: '#fff8bc',
    500: '#fef59f',
    950: '#000000',
  },
}
SCSS
$custom: #fef59f;
$custom-light: #fff8bc;
$custom-dark: #000000;
JSON
{
  "hex": "#fef59f",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 159
  },
  "hsl": {
    "h": 54.316,
    "s": 97.938,
    "l": 80.98
  },
  "oklch": {
    "l": 0.9583,
    "c": 0.10704,
    "h": 103.1
  },
  "luminance": 0.88879
}

Semantic roles & 50–950 ramp

primary
#FEF59F
secondary
#606CE1
accent
#16E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181712
muted
#868582

Preview Lab

Preview with #FEF59F

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

Preview Lab → · Contrast checker → · Palette generator →

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