#FEF57C#FEF57C

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

Color values

HEX#FEF57C
RGBrgb(254, 245, 124)
HSLhsl(56, 98%, 74%)
HSVhsv(56, 51%, 100%)
CMYKcmyk(0%, 3.5%, 51.2%, 0.4%)
CIE-LABlab(95.09, -12.40, 58.63)
CIE-LCHlch(95.09, 59.92, 101.94°)
OKLaboklab(95.34% -0.0368 0.138)
OKLCHoklch(95.34% 0.143 104.9)
XYZxyz(77.1657, 87.8332, 31.9536)
Luminance0.8783 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF57C #7C85FE
analogous
#FEB47C #FEF57C #C6FE7C
triadic
#FEF57C #7CFEF5 #F57CFE
tetradic
#FEF57C #7CFEB4 #7C85FE #FE7CC6
square
#FEF57C #7CFEB4 #7C85FE #FE7CC6
split-complementary
#FEF57C #7CC6FE #B47CFE
monochromatic
#FDEC03 #FEF03F #FEF57C #FEFAB9 #FFFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF57C#FFFFFF#000000##000000
##FEF57C1.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)
#FFEE71
Deuteranopia (green-blind)
#FFF482
Tritanopia (blue-blind)
#FFE7D9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef57c;
/* rgb */ color: rgb(254, 245, 124);
/* oklch */ color: oklch(95.3% 0.143 104.9);
Tailwind
colors: {
  custom: {
    50: '#fff8a5',
    500: '#fef57c',
    950: '#000000',
  },
}
SCSS
$custom: #fef57c;
$custom-light: #fff8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef57c",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 124
  },
  "hsl": {
    "h": 55.846,
    "s": 98.485,
    "l": 74.118
  },
  "oklch": {
    "l": 0.95338,
    "c": 0.14283,
    "h": 104.9
  },
  "luminance": 0.87831
}

Semantic roles & 50–950 ramp

primary
#FEF57C
secondary
#424DDC
accent
#10E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF57C

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

Preview Lab → · Contrast checker → · Palette generator →

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