#FEF4BF#FEF4BF

#FEF4BF is a very light, moderate yellow. Relative luminance 0.895; OKLCH L 96.2% C 0.069 H 98.6°. Best body text is #000000 at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#FEF4BF
RGBrgb(254, 244, 191)
HSLhsl(50, 97%, 87%)
HSVhsv(50, 25%, 100%)
CMYKcmyk(0%, 3.9%, 24.8%, 0.4%)
CIE-LABlab(95.80, -4.71, 26.81)
CIE-LCHlch(95.80, 27.22, 99.97°)
OKLaboklab(96.22% -0.0103 0.068)
OKLCHoklch(96.22% 0.069 98.6)
XYZxyz(82.6279, 89.5354, 62.2094)
Luminance0.8953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF4BF #BFC9FE
analogous
#FED5BF #FEF4BF #E9FEBF
triadic
#FEF4BF #BFFEF4 #F4BFFE
tetradic
#FEF4BF #BFFED5 #BFC9FE #FEBFE9
square
#FEF4BF #BFFED5 #BFC9FE #FEBFE9
split-complementary
#FEF4BF #BFE9FE #D5BFFE
monochromatic
#FCDF46 #FDEA83 #FEF4BF #FFFAE1 #FFFAE1

Accessibility & contrast

On white

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

On black

18.91
#FEF4BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF4BF
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF4BF#FFFFFF#000000##000000
##FEF4BF1.001.1118.9118.91
#FFFFFF1.111.0021.0021.00
#00000018.9121.001.001.00
##00000018.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF1BC
Deuteranopia (green-blind)
#FFF5C1
Tritanopia (blue-blind)
#FFECE6
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef4bf;
/* rgb */ color: rgb(254, 244, 191);
/* oklch */ color: oklch(96.2% 0.069 98.6);
Tailwind
colors: {
  custom: {
    50: '#fff7d2',
    500: '#fef4bf',
    950: '#000000',
  },
}
SCSS
$custom: #fef4bf;
$custom-light: #fff7d2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef4bf",
  "rgb": {
    "r": 254,
    "g": 244,
    "b": 191
  },
  "hsl": {
    "h": 50.476,
    "s": 96.923,
    "l": 87.255
  },
  "oklch": {
    "l": 0.96218,
    "c": 0.06876,
    "h": 98.6
  },
  "luminance": 0.89534
}

Semantic roles & 50–950 ramp

primary
#FEF4BF
secondary
#7B8CE6
accent
#24E600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF4BF

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

Preview Lab → · Contrast checker → · Palette generator →

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