#FEF8A5#FEF8A5

#FEF8A5 is a very light, moderate yellow. Relative luminance 0.909; OKLCH L 96.5% C 0.104 H 104.6°. Best body text is #000000 at 19.18:1 contrast (WCAG AA passes).

Color values

HEX#FEF8A5
RGBrgb(254, 248, 165)
HSLhsl(56, 98%, 82%)
HSVhsv(56, 35%, 100%)
CMYKcmyk(0%, 2.4%, 35%, 0.4%)
CIE-LABlab(96.38, -9.89, 40.64)
CIE-LCHlch(96.38, 41.82, 103.68°)
OKLaboklab(96.53% -0.0262 0.1002)
OKLCHoklch(96.53% 0.104 104.6)
XYZxyz(81.2330, 90.9240, 48.8609)
Luminance0.9092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8A5 #A5ABFE
analogous
#FECCA5 #FEF8A5 #D8FEA5
triadic
#FEF8A5 #A5FEF8 #F8A5FE
tetradic
#FEF8A5 #A5FECC #A5ABFE #FEA5D8
square
#FEF8A5 #A5FECC #A5ABFE #FEA5D8
split-complementary
#FEF8A5 #A5D8FE #CCA5FE
monochromatic
#FDEF2C #FDF368 #FEF8A5 #FFFDE1 #FFFDE1

Accessibility & contrast

On white

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

On black

19.18
#FEF8A5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8A5
19.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8A5#FFFFFF#000000##000000
##FEF8A51.001.0919.1819.18
#FFFFFF1.091.0021.0021.00
#00000019.1821.001.001.00
##00000019.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF29F
Deuteranopia (green-blind)
#FFF7A8
Tritanopia (blue-blind)
#FFEEE3
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef8a5;
/* rgb */ color: rgb(254, 248, 165);
/* oklch */ color: oklch(96.5% 0.104 104.6);
Tailwind
colors: {
  custom: {
    50: '#fffac0',
    500: '#fef8a5',
    950: '#000000',
  },
}
SCSS
$custom: #fef8a5;
$custom-light: #fffac0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8a5",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 165
  },
  "hsl": {
    "h": 55.955,
    "s": 97.802,
    "l": 82.157
  },
  "oklch": {
    "l": 0.96532,
    "c": 0.10356,
    "h": 104.6
  },
  "luminance": 0.90922
}

Semantic roles & 50–950 ramp

primary
#FEF8A5
secondary
#656DE2
accent
#0FE600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181712
muted
#868582

Preview Lab

Preview with #FEF8A5

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

Preview Lab → · Contrast checker → · Palette generator →

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