#FEF57F#FEF57F

#FEF57F is a very light, vivid yellow. Relative luminance 0.879; OKLCH L 95.4% C 0.140 H 104.8°. Best body text is #000000 at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#FEF57F
RGBrgb(254, 245, 127)
HSLhsl(56, 98%, 75%)
HSVhsv(56, 50%, 100%)
CMYKcmyk(0%, 3.5%, 50%, 0.4%)
CIE-LABlab(95.12, -12.15, 57.29)
CIE-LCHlch(95.12, 58.57, 101.97°)
OKLaboklab(95.38% -0.0358 0.1354)
OKLCHoklch(95.38% 0.14 104.8)
XYZxyz(77.3583, 87.9103, 32.9680)
Luminance0.8791 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF57F #7F88FE
analogous
#FEB67F #FEF57F #C8FE7F
triadic
#FEF57F #7FFEF5 #F57FFE
tetradic
#FEF57F #7FFEB6 #7F88FE #FE7FC8
square
#FEF57F #7FFEB6 #7F88FE #FE7FC8
split-complementary
#FEF57F #7FC8FE #B67FFE
monochromatic
#FDEC06 #FEF042 #FEF57F #FEFABC #FFFDE1

Accessibility & contrast

On white

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

On black

18.58
#FEF57F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF57F
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF57F#FFFFFF#000000##000000
##FEF57F1.001.1318.5818.58
#FFFFFF1.131.0021.0021.00
#00000018.5821.001.001.00
##00000018.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE74
Deuteranopia (green-blind)
#FFF485
Tritanopia (blue-blind)
#FFE8DA
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef57f;
/* rgb */ color: rgb(254, 245, 127);
/* oklch */ color: oklch(95.4% 0.140 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff8a7',
    500: '#fef57f',
    950: '#000000',
  },
}
SCSS
$custom: #fef57f;
$custom-light: #fff8a7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef57f",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 127
  },
  "hsl": {
    "h": 55.748,
    "s": 98.45,
    "l": 74.706
  },
  "oklch": {
    "l": 0.95375,
    "c": 0.14002,
    "h": 104.8
  },
  "luminance": 0.87908
}

Semantic roles & 50–950 ramp

primary
#FEF57F
secondary
#454FDD
accent
#10E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF57F

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

Preview Lab → · Contrast checker → · Palette generator →

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