#FEF8A6#FEF8A6

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

Color values

HEX#FEF8A6
RGBrgb(254, 248, 166)
HSLhsl(56, 98%, 82%)
HSVhsv(56, 35%, 100%)
CMYKcmyk(0%, 2.4%, 34.6%, 0.4%)
CIE-LABlab(96.39, -9.78, 40.16)
CIE-LCHlch(96.39, 41.34, 103.69°)
OKLaboklab(96.55% -0.0258 0.0991)
OKLCHoklch(96.55% 0.102 104.6)
XYZxyz(81.3243, 90.9606, 49.3421)
Luminance0.9096 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8A6 #A6ACFE
analogous
#FECCA6 #FEF8A6 #D8FEA6
triadic
#FEF8A6 #A6FEF8 #F8A6FE
tetradic
#FEF8A6 #A6FECC #A6ACFE #FEA6D8
square
#FEF8A6 #A6FECC #A6ACFE #FEA6D8
split-complementary
#FEF8A6 #A6D8FE #CCA6FE
monochromatic
#FDEE2D #FDF369 #FEF8A6 #FFFDE1 #FFFDE1

Accessibility & contrast

On white

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

On black

19.19
#FEF8A6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8A6
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8A6#FFFFFF#000000##000000
##FEF8A61.001.0919.1919.19
#FFFFFF1.091.0021.0021.00
#00000019.1921.001.001.00
##00000019.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef8a6;
/* rgb */ color: rgb(254, 248, 166);
/* oklch */ color: oklch(96.5% 0.102 104.6);
Tailwind
colors: {
  custom: {
    50: '#fffac1',
    500: '#fef8a6',
    950: '#000000',
  },
}
SCSS
$custom: #fef8a6;
$custom-light: #fffac1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8a6",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 166
  },
  "hsl": {
    "h": 55.909,
    "s": 97.778,
    "l": 82.353
  },
  "oklch": {
    "l": 0.96549,
    "c": 0.10243,
    "h": 104.6
  },
  "luminance": 0.90959
}

Semantic roles & 50–950 ramp

primary
#FEF8A6
secondary
#666EE2
accent
#10E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181712
muted
#868582

Preview Lab

Preview with #FEF8A6

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

Preview Lab → · Contrast checker → · Palette generator →

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