#FEF0AA#FEF0AA

#FEF0AA is a very light, moderate yellow. Relative luminance 0.863; OKLCH L 95.0% C 0.090 H 98.2°. Best body text is #000000 at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#FEF0AA
RGBrgb(254, 240, 170)
HSLhsl(50, 98%, 83%)
HSVhsv(50, 33%, 100%)
CMYKcmyk(0%, 5.5%, 33.1%, 0.4%)
CIE-LABlab(94.44, -5.34, 35.60)
CIE-LCHlch(94.44, 35.99, 98.54°)
OKLaboklab(95.02% -0.0128 0.0886)
OKLCHoklch(95.02% 0.09 98.2)
XYZxyz(79.2898, 86.2953, 50.5023)
Luminance0.8629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF0AA #AAB8FE
analogous
#FEC6AA #FEF0AA #E2FEAA
triadic
#FEF0AA #AAFEF0 #F0AAFE
tetradic
#FEF0AA #AAFEC6 #AAB8FE #FEAAE2
square
#FEF0AA #AAFEC6 #AAB8FE #FEAAE2
split-complementary
#FEF0AA #AAE2FE #C6AAFE
monochromatic
#FDDB31 #FDE56E #FEF0AA #FFFAE1 #FFFAE1

Accessibility & contrast

On white

1.15
#FEF0AA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.26
#FEF0AA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF0AA
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF0AA#FFFFFF#000000##000000
##FEF0AA1.001.1518.2618.26
#FFFFFF1.151.0021.0021.00
#00000018.2621.001.001.00
##00000018.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDECA5
Deuteranopia (green-blind)
#FFF1AC
Tritanopia (blue-blind)
#FFE6DE
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef0aa;
/* rgb */ color: rgb(254, 240, 170);
/* oklch */ color: oklch(95.0% 0.090 98.2);
Tailwind
colors: {
  custom: {
    50: '#fff4c4',
    500: '#fef0aa',
    950: '#000000',
  },
}
SCSS
$custom: #fef0aa;
$custom-light: #fff4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef0aa",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 170
  },
  "hsl": {
    "h": 50,
    "s": 97.674,
    "l": 83.137
  },
  "oklch": {
    "l": 0.95021,
    "c": 0.08952,
    "h": 98.2
  },
  "luminance": 0.86293
}

Semantic roles & 50–950 ramp

primary
#FEF0AA
secondary
#697EE3
accent
#26E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181712
muted
#868582

Preview Lab

Preview with #FEF0AA

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

Preview Lab → · Contrast checker → · Palette generator →

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