#FEF8AA#FEF8AA

#FEF8AA is a very light, moderate yellow. Relative luminance 0.911; OKLCH L 96.6% C 0.098 H 104.3°. Best body text is #000000 at 19.22:1 contrast (WCAG AA passes).

Color values

HEX#FEF8AA
RGBrgb(254, 248, 170)
HSLhsl(56, 98%, 83%)
HSVhsv(56, 33%, 100%)
CMYKcmyk(0%, 2.4%, 33.1%, 0.4%)
CIE-LABlab(96.46, -9.32, 38.26)
CIE-LCHlch(96.46, 39.38, 103.69°)
OKLaboklab(96.62% -0.0242 0.0948)
OKLCHoklch(96.62% 0.098 104.3)
XYZxyz(81.6970, 91.1096, 51.3047)
Luminance0.9111 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8AA #AAB0FE
analogous
#FECEAA #FEF8AA #DAFEAA
triadic
#FEF8AA #AAFEF8 #F8AAFE
tetradic
#FEF8AA #AAFECE #AAB0FE #FEAADA
square
#FEF8AA #AAFECE #AAB0FE #FEAADA
split-complementary
#FEF8AA #AADAFE #CEAAFE
monochromatic
#FDEE31 #FDF36E #FEF8AA #FFFDE1 #FFFDE1

Accessibility & contrast

On white

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

On black

19.22
#FEF8AA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8AA
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8AA#FFFFFF#000000##000000
##FEF8AA1.001.0919.2219.22
#FFFFFF1.091.0021.0021.00
#00000019.2221.001.001.00
##00000019.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF2A5
Deuteranopia (green-blind)
#FFF7AD
Tritanopia (blue-blind)
#FFEEE4
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef8aa;
/* rgb */ color: rgb(254, 248, 170);
/* oklch */ color: oklch(96.6% 0.098 104.3);
Tailwind
colors: {
  custom: {
    50: '#fffac4',
    500: '#fef8aa',
    950: '#000000',
  },
}
SCSS
$custom: #fef8aa;
$custom-light: #fffac4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8aa",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 170
  },
  "hsl": {
    "h": 55.714,
    "s": 97.674,
    "l": 83.137
  },
  "oklch": {
    "l": 0.96617,
    "c": 0.09789,
    "h": 104.3
  },
  "luminance": 0.91108
}

Semantic roles & 50–950 ramp

primary
#FEF8AA
secondary
#6972E3
accent
#10E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181712
muted
#868582

Preview Lab

Preview with #FEF8AA

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

Preview Lab → · Contrast checker → · Palette generator →

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