#FEF56A#FEF56A

#FEF56A is a very light, vivid yellow. Relative luminance 0.874; OKLCH L 95.1% C 0.159 H 105.6°. Best body text is #000000 at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#FEF56A
RGBrgb(254, 245, 106)
HSLhsl(56, 99%, 71%)
HSVhsv(56, 58%, 100%)
CMYKcmyk(0%, 3.5%, 58.3%, 0.4%)
CIE-LABlab(94.92, -13.74, 66.37)
CIE-LCHlch(94.92, 67.78, 101.70°)
OKLaboklab(95.14% -0.0425 0.1527)
OKLCHoklch(95.14% 0.159 105.6)
XYZxyz(76.1295, 87.4188, 26.4962)
Luminance0.8742 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF56A #6A73FE
analogous
#FEAB6A #FEF56A #BDFE6A
triadic
#FEF56A #6AFEF5 #F56AFE
tetradic
#FEF56A #6AFEAB #6A73FE #FE6ABD
square
#FEF56A #6AFEAB #6A73FE #FE6ABD
split-complementary
#FEF56A #6ABDFE #AB6AFE
monochromatic
#ECDE02 #FEF12D #FEF56A #FEF9A7 #FFFDE1

Accessibility & contrast

On white

1.14
#FEF56A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.48
#FEF56A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF56A
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF56A#FFFFFF#000000##000000
##FEF56A1.001.1418.4818.48
#FFFFFF1.141.0021.0021.00
#00000018.4821.001.001.00
##00000018.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED5B
Deuteranopia (green-blind)
#FFF372
Tritanopia (blue-blind)
#FFE6D7
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef56a;
/* rgb */ color: rgb(254, 245, 106);
/* oklch */ color: oklch(95.1% 0.159 105.6);
Tailwind
colors: {
  custom: {
    50: '#fff899',
    500: '#fef56a',
    950: '#000000',
  },
}
SCSS
$custom: #fef56a;
$custom-light: #fff899;
$custom-dark: #000000;
JSON
{
  "hex": "#fef56a",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 106
  },
  "hsl": {
    "h": 56.351,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.95143,
    "c": 0.15852,
    "h": 105.6
  },
  "luminance": 0.87416
}

Semantic roles & 50–950 ramp

primary
#FEF56A
secondary
#333DDA
accent
#0EE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F

Preview Lab

Preview with #FEF56A

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

Preview Lab → · Contrast checker → · Palette generator →

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