#FEF58D#FEF58D

#FEF58D is a very light, vivid yellow. Relative luminance 0.883; OKLCH L 95.6% C 0.126 H 104.2°. Best body text is #000000 at 18.66:1 contrast (WCAG AA passes).

Color values

HEX#FEF58D
RGBrgb(254, 245, 141)
HSLhsl(55, 98%, 77%)
HSVhsv(55, 44%, 100%)
CMYKcmyk(0%, 3.5%, 44.5%, 0.4%)
CIE-LABlab(95.29, -10.90, 50.93)
CIE-LCHlch(95.29, 52.08, 102.08°)
OKLaboklab(95.56% -0.0309 0.1224)
OKLCHoklch(95.56% 0.126 104.2)
XYZxyz(78.3349, 88.3009, 38.1115)
Luminance0.8830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF58D #8D96FE
analogous
#FEBC8D #FEF58D #CFFE8D
triadic
#FEF58D #8DFEF5 #F58DFE
tetradic
#FEF58D #8DFEBC #8D96FE #FE8DCF
square
#FEF58D #8DFEBC #8D96FE #FE8DCF
split-complementary
#FEF58D #8DCFFE #BC8DFE
monochromatic
#FDEA14 #FDF050 #FEF58D #FFFACA #FFFCE1

Accessibility & contrast

On white

1.13
#FEF58D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.66
#FEF58D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF58D
18.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF58D#FFFFFF#000000##000000
##FEF58D1.001.1318.6618.66
#FFFFFF1.131.0021.0021.00
#00000018.6621.001.001.00
##00000018.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE84
Deuteranopia (green-blind)
#FFF492
Tritanopia (blue-blind)
#FFE9DC
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef58d;
/* rgb */ color: rgb(254, 245, 141);
/* oklch */ color: oklch(95.6% 0.126 104.2);
Tailwind
colors: {
  custom: {
    50: '#fff8b0',
    500: '#fef58d',
    950: '#000000',
  },
}
SCSS
$custom: #fef58d;
$custom-light: #fff8b0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef58d",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 141
  },
  "hsl": {
    "h": 55.221,
    "s": 98.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.95559,
    "c": 0.12623,
    "h": 104.2
  },
  "luminance": 0.88299
}

Semantic roles & 50–950 ramp

primary
#FEF58D
secondary
#505CDF
accent
#12E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581

Preview Lab

Preview with #FEF58D

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

Preview Lab → · Contrast checker → · Palette generator →

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