#FEF5BA#FEF5BA

#FEF5BA is a very light, moderate yellow. Relative luminance 0.899; OKLCH L 96.3% C 0.076 H 100.4°. Best body text is #000000 at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#FEF5BA
RGBrgb(254, 245, 186)
HSLhsl(52, 97%, 86%)
HSVhsv(52, 27%, 100%)
CMYKcmyk(0%, 3.5%, 26.8%, 0.4%)
CIE-LABlab(95.96, -5.87, 29.57)
CIE-LCHlch(95.96, 30.14, 101.23°)
OKLaboklab(96.32% -0.0137 0.0746)
OKLCHoklch(96.32% 0.076 100.4)
XYZxyz(82.3887, 89.9224, 59.4615)
Luminance0.8992 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF5BA #BAC3FE
analogous
#FED3BA #FEF5BA #E5FEBA
triadic
#FEF5BA #BAFEF5 #F5BAFE
tetradic
#FEF5BA #BAFED3 #BAC3FE #FEBAE5
square
#FEF5BA #BAFED3 #BAC3FE #FEBAE5
split-complementary
#FEF5BA #BAE5FE #D3BAFE
monochromatic
#FCE441 #FDEC7E #FEF5BA #FFFBE1 #FFFBE1

Accessibility & contrast

On white

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

On black

18.98
#FEF5BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF5BA
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF5BA#FFFFFF#000000##000000
##FEF5BA1.001.1118.9818.98
#FFFFFF1.111.0021.0021.00
#00000018.9821.001.001.00
##00000018.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF1B6
Deuteranopia (green-blind)
#FFF5BC
Tritanopia (blue-blind)
#FFEDE5
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef5ba;
/* rgb */ color: rgb(254, 245, 186);
/* oklch */ color: oklch(96.3% 0.076 100.4);
Tailwind
colors: {
  custom: {
    50: '#fff8cf',
    500: '#fef5ba',
    950: '#000000',
  },
}
SCSS
$custom: #fef5ba;
$custom-light: #fff8cf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef5ba",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 186
  },
  "hsl": {
    "h": 52.059,
    "s": 97.143,
    "l": 86.275
  },
  "oklch": {
    "l": 0.96316,
    "c": 0.07583,
    "h": 100.4
  },
  "luminance": 0.89921
}

Semantic roles & 50–950 ramp

primary
#FEF5BA
secondary
#7786E5
accent
#1EE600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181713
muted
#868583

Preview Lab

Preview with #FEF5BA

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

Preview Lab → · Contrast checker → · Palette generator →

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