#FEF8B4#FEF8B4

#FEF8B4 is a very light, moderate yellow. Relative luminance 0.915; OKLCH L 96.8% C 0.086 H 103.6°. Best body text is #000000 at 19.30:1 contrast (WCAG AA passes).

Color values

HEX#FEF8B4
RGBrgb(254, 248, 180)
HSLhsl(55, 97%, 85%)
HSVhsv(55, 29%, 100%)
CMYKcmyk(0%, 2.4%, 29.1%, 0.4%)
CIE-LABlab(96.62, -8.12, 33.47)
CIE-LCHlch(96.62, 34.44, 103.63°)
OKLaboklab(96.8% -0.0203 0.0838)
OKLCHoklch(96.8% 0.086 103.6)
XYZxyz(82.6792, 91.5025, 56.4775)
Luminance0.9150 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8B4 #B4BAFE
analogous
#FED3B4 #FEF8B4 #DFFEB4
triadic
#FEF8B4 #B4FEF8 #F8B4FE
tetradic
#FEF8B4 #B4FED3 #B4BAFE #FEB4DF
square
#FEF8B4 #B4FED3 #B4BAFE #FEB4DF
split-complementary
#FEF8B4 #B4DFFE #D3B4FE
monochromatic
#FCED3B #FDF278 #FEF8B4 #FFFCE1 #FFFCE1

Accessibility & contrast

On white

1.09
#FEF8B4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.30
#FEF8B4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8B4
19.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8B4#FFFFFF#000000##000000
##FEF8B41.001.0919.3019.30
#FFFFFF1.091.0021.0021.00
#00000019.3021.001.001.00
##00000019.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3AF
Deuteranopia (green-blind)
#FFF7B7
Tritanopia (blue-blind)
#FFEFE6
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef8b4;
/* rgb */ color: rgb(254, 248, 180);
/* oklch */ color: oklch(96.8% 0.086 103.6);
Tailwind
colors: {
  custom: {
    50: '#fffacb',
    500: '#fef8b4',
    950: '#000000',
  },
}
SCSS
$custom: #fef8b4;
$custom-light: #fffacb;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8b4",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 180
  },
  "hsl": {
    "h": 55.135,
    "s": 97.368,
    "l": 85.098
  },
  "oklch": {
    "l": 0.96798,
    "c": 0.08625,
    "h": 103.6
  },
  "luminance": 0.91501
}

Semantic roles & 50–950 ramp

primary
#FEF8B4
secondary
#727BE4
accent
#13E600
background
#FFFFFE
surface
#FFFFFA
border
#D7D7D3
text
#181713
muted
#868583

Preview Lab

Preview with #FEF8B4

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

Preview Lab → · Contrast checker → · Palette generator →

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