#FEF8AE#FEF8AE

#FEF8AE is a very light, moderate yellow. Relative luminance 0.913; OKLCH L 96.7% C 0.093 H 104.1°. Best body text is #000000 at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#FEF8AE
RGBrgb(254, 248, 174)
HSLhsl(56, 98%, 84%)
HSVhsv(56, 31%, 100%)
CMYKcmyk(0%, 2.4%, 31.5%, 0.4%)
CIE-LABlab(96.52, -8.85, 36.35)
CIE-LCHlch(96.52, 37.41, 103.68°)
OKLaboklab(96.69% -0.0227 0.0905)
OKLCHoklch(96.69% 0.093 104.1)
XYZxyz(82.0811, 91.2633, 53.3279)
Luminance0.9126 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8AE #AEB4FE
analogous
#FED0AE #FEF8AE #DCFEAE
triadic
#FEF8AE #AEFEF8 #F8AEFE
tetradic
#FEF8AE #AEFED0 #AEB4FE #FEAEDC
square
#FEF8AE #AEFED0 #AEB4FE #FEAEDC
split-complementary
#FEF8AE #AEDCFE #D0AEFE
monochromatic
#FDEE35 #FDF372 #FEF8AE #FFFCE1 #FFFCE1

Accessibility & contrast

On white

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

On black

19.25
#FEF8AE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8AE
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8AE#FFFFFF#000000##000000
##FEF8AE1.001.0919.2519.25
#FFFFFF1.091.0021.0021.00
#00000019.2521.001.001.00
##00000019.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3A9
Deuteranopia (green-blind)
#FFF7B1
Tritanopia (blue-blind)
#FFEEE5
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef8ae;
/* rgb */ color: rgb(254, 248, 174);
/* oklch */ color: oklch(96.7% 0.093 104.1);
Tailwind
colors: {
  custom: {
    50: '#fffac6',
    500: '#fef8ae',
    950: '#000000',
  },
}
SCSS
$custom: #fef8ae;
$custom-light: #fffac6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8ae",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 174
  },
  "hsl": {
    "h": 55.5,
    "s": 97.561,
    "l": 83.922
  },
  "oklch": {
    "l": 0.96688,
    "c": 0.09327,
    "h": 104.1
  },
  "luminance": 0.91262
}

Semantic roles & 50–950 ramp

primary
#FEF8AE
secondary
#6D76E3
accent
#11E600
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF8AE

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

Preview Lab → · Contrast checker → · Palette generator →

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