#FEFEB4#FEFEB4

#FEFEB4 is a very light, moderate yellow. Relative luminance 0.953; OKLCH L 98.0% C 0.093 H 108.0°. Best body text is #000000 at 20.05:1 contrast (WCAG AA passes).

Color values

HEX#FEFEB4
RGBrgb(254, 254, 180)
HSLhsl(60, 97%, 85%)
HSVhsv(60, 29%, 100%)
CMYKcmyk(0%, 0%, 29.1%, 0.4%)
CIE-LABlab(98.13, -11.08, 35.50)
CIE-LCHlch(98.13, 37.19, 107.33°)
OKLaboklab(98% -0.0288 0.0886)
OKLCHoklch(98% 0.093 108)
XYZxyz(84.5534, 95.2511, 57.1023)
Luminance0.9525 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEFEB4 #B4B4FE
analogous
#FED9B4 #FEFEB4 #D9FEB4
triadic
#FEFEB4 #B4FEFE #FEB4FE
tetradic
#FEFEB4 #B4FED9 #B4B4FE #FEB4D9
square
#FEFEB4 #B4FED9 #B4B4FE #FEB4D9
split-complementary
#FEFEB4 #B4D9FE #D9B4FE
monochromatic
#FCFC3B #FDFD78 #FEFEB4 #FFFFE1 #FFFFE1

Accessibility & contrast

On white

1.05
#FEFEB4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

20.05
#FEFEB4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEFEB4
20.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEFEB4#FFFFFF#000000##000000
##FEFEB41.001.0520.0520.05
#FFFFFF1.051.0021.0021.00
#00000020.0521.001.001.00
##00000020.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF8AF
Deuteranopia (green-blind)
#FFFBB7
Tritanopia (blue-blind)
#FFF5EB
Achromatopsia (no color)
#FAFAFA

Design tokens & code

CSS
--color: #fefeb4;
/* rgb */ color: rgb(254, 254, 180);
/* oklch */ color: oklch(98.0% 0.093 108.0);
Tailwind
colors: {
  custom: {
    50: '#fffecb',
    500: '#fefeb4',
    950: '#000000',
  },
}
SCSS
$custom: #fefeb4;
$custom-light: #fffecb;
$custom-dark: #000000;
JSON
{
  "hex": "#fefeb4",
  "rgb": {
    "r": 254,
    "g": 254,
    "b": 180
  },
  "hsl": {
    "h": 60,
    "s": 97.368,
    "l": 85.098
  },
  "oklch": {
    "l": 0.98,
    "c": 0.09318,
    "h": 108
  },
  "luminance": 0.9525
}

Semantic roles & 50–950 ramp

primary
#FEFEB4
secondary
#7272E4
accent
#00E600
background
#FFFFFE
surface
#FFFFFA
border
#D7D7D3
text
#181713
muted
#868583

Preview Lab

Preview with #FEFEB4

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

Preview Lab → · Contrast checker → · Palette generator →

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