#FEF5AB#FEF5AB

#FEF5AB is a very light, moderate yellow. Relative luminance 0.893; OKLCH L 96.0% C 0.093 H 102.1°. Best body text is #000000 at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#FEF5AB
RGBrgb(254, 245, 171)
HSLhsl(53, 98%, 83%)
HSVhsv(53, 33%, 100%)
CMYKcmyk(0%, 3.5%, 32.7%, 0.4%)
CIE-LABlab(95.71, -7.72, 36.78)
CIE-LCHlch(95.71, 37.58, 101.85°)
OKLaboklab(96.04% -0.0196 0.0914)
OKLCHoklch(96.04% 0.093 102.1)
XYZxyz(80.8770, 89.3178, 51.4998)
Luminance0.8932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF5AB #ABB4FE
analogous
#FECBAB #FEF5AB #DDFEAB
triadic
#FEF5AB #ABFEF5 #F5ABFE
tetradic
#FEF5AB #ABFECB #ABB4FE #FEABDD
square
#FEF5AB #ABFECB #ABB4FE #FEABDD
split-complementary
#FEF5AB #ABDDFE #CBABFE
monochromatic
#FDE732 #FDEE6F #FEF5AB #FFFBE1 #FFFBE1

Accessibility & contrast

On white

1.11
#FEF5AB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.86
#FEF5AB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF5AB
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF5AB#FFFFFF#000000##000000
##FEF5AB1.001.1118.8618.86
#FFFFFF1.111.0021.0021.00
#00000018.8621.001.001.00
##00000018.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF0A6
Deuteranopia (green-blind)
#FFF5AE
Tritanopia (blue-blind)
#FFEBE2
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef5ab;
/* rgb */ color: rgb(254, 245, 171);
/* oklch */ color: oklch(96.0% 0.093 102.1);
Tailwind
colors: {
  custom: {
    50: '#fff8c4',
    500: '#fef5ab',
    950: '#000000',
  },
}
SCSS
$custom: #fef5ab;
$custom-light: #fff8c4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef5ab",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 171
  },
  "hsl": {
    "h": 53.494,
    "s": 97.647,
    "l": 83.333
  },
  "oklch": {
    "l": 0.96035,
    "c": 0.09348,
    "h": 102.1
  },
  "luminance": 0.89316
}

Semantic roles & 50–950 ramp

primary
#FEF5AB
secondary
#6A77E3
accent
#19E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF5AB

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

Preview Lab → · Contrast checker → · Palette generator →

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