#FEF57D#FEF57D

#FEF57D is a very light, vivid yellow. Relative luminance 0.879; OKLCH L 95.3% C 0.142 H 104.9°. Best body text is #000000 at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#FEF57D
RGBrgb(254, 245, 125)
HSLhsl(56, 98%, 74%)
HSVhsv(56, 51%, 100%)
CMYKcmyk(0%, 3.5%, 50.8%, 0.4%)
CIE-LABlab(95.10, -12.31, 58.18)
CIE-LCHlch(95.10, 59.47, 101.95°)
OKLaboklab(95.35% -0.0365 0.1371)
OKLCHoklch(95.35% 0.142 104.9)
XYZxyz(77.2293, 87.8587, 32.2883)
Luminance0.8786 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF57D #7D86FE
analogous
#FEB57D #FEF57D #C7FE7D
triadic
#FEF57D #7DFEF5 #F57DFE
tetradic
#FEF57D #7DFEB5 #7D86FE #FE7DC7
square
#FEF57D #7DFEB5 #7D86FE #FE7DC7
split-complementary
#FEF57D #7DC7FE #B57DFE
monochromatic
#FDEC04 #FEF040 #FEF57D #FEFABA #FFFDE1

Accessibility & contrast

On white

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

On black

18.57
#FEF57D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF57D
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF57D#FFFFFF#000000##000000
##FEF57D1.001.1318.5718.57
#FFFFFF1.131.0021.0021.00
#00000018.5721.001.001.00
##00000018.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE72
Deuteranopia (green-blind)
#FFF483
Tritanopia (blue-blind)
#FFE7DA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef57d;
/* rgb */ color: rgb(254, 245, 125);
/* oklch */ color: oklch(95.3% 0.142 104.9);
Tailwind
colors: {
  custom: {
    50: '#fff8a5',
    500: '#fef57d',
    950: '#000000',
  },
}
SCSS
$custom: #fef57d;
$custom-light: #fff8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef57d",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 125
  },
  "hsl": {
    "h": 55.814,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.9535,
    "c": 0.1419,
    "h": 104.9
  },
  "luminance": 0.87856
}

Semantic roles & 50–950 ramp

primary
#FEF57D
secondary
#434EDC
accent
#10E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF57D

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

Preview Lab → · Contrast checker → · Palette generator →

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