#FEF57B#FEF57B

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

Color values

HEX#FEF57B
RGBrgb(254, 245, 123)
HSLhsl(56, 98%, 74%)
HSVhsv(56, 52%, 100%)
CMYKcmyk(0%, 3.5%, 51.6%, 0.4%)
CIE-LABlab(95.08, -12.48, 59.07)
CIE-LCHlch(95.08, 60.37, 101.93°)
OKLaboklab(95.33% -0.0372 0.1389)
OKLCHoklch(95.33% 0.144 105)
XYZxyz(77.1028, 87.8081, 31.6222)
Luminance0.8781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF57B #7B84FE
analogous
#FEB47B #FEF57B #C6FE7B
triadic
#FEF57B #7BFEF5 #F57BFE
tetradic
#FEF57B #7BFEB4 #7B84FE #FE7BC6
square
#FEF57B #7BFEB4 #7B84FE #FE7BC6
split-complementary
#FEF57B #7BC6FE #B47BFE
monochromatic
#FDEB02 #FEF03E #FEF57B #FEFAB8 #FFFDE1

Accessibility & contrast

On white

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

On black

18.56
#FEF57B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF57B
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF57B#FFFFFF#000000##000000
##FEF57B1.001.1318.5618.56
#FFFFFF1.131.0021.0021.00
#00000018.5621.001.001.00
##00000018.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE70
Deuteranopia (green-blind)
#FFF481
Tritanopia (blue-blind)
#FFE7D9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef57b;
/* rgb */ color: rgb(254, 245, 123);
/* oklch */ color: oklch(95.3% 0.144 105.0);
Tailwind
colors: {
  custom: {
    50: '#fff8a4',
    500: '#fef57b',
    950: '#000000',
  },
}
SCSS
$custom: #fef57b;
$custom-light: #fff8a4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef57b",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 123
  },
  "hsl": {
    "h": 55.878,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.95327,
    "c": 0.14376,
    "h": 105
  },
  "luminance": 0.87806
}

Semantic roles & 50–950 ramp

primary
#FEF57B
secondary
#414CDC
accent
#10E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF57B

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

Preview Lab → · Contrast checker → · Palette generator →

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