#FEF7BB#FEF7BB

#FEF7BB is a very light, moderate yellow. Relative luminance 0.912; OKLCH L 96.7% C 0.077 H 102.1°. Best body text is #000000 at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#FEF7BB
RGBrgb(254, 247, 187)
HSLhsl(54, 97%, 86%)
HSVhsv(54, 26%, 100%)
CMYKcmyk(0%, 2.8%, 26.4%, 0.4%)
CIE-LABlab(96.48, -6.74, 29.77)
CIE-LCHlch(96.48, 30.52, 102.75°)
OKLaboklab(96.73% -0.0161 0.0751)
OKLCHoklch(96.73% 0.077 102.1)
XYZxyz(83.1037, 91.1818, 60.2261)
Luminance0.9118 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7BB #BBC2FE
analogous
#FED6BB #FEF7BB #E4FEBB
triadic
#FEF7BB #BBFEF7 #F7BBFE
tetradic
#FEF7BB #BBFED6 #BBC2FE #FEBBE4
square
#FEF7BB #BBFED6 #BBC2FE #FEBBE4
split-complementary
#FEF7BB #BBE4FE #D6BBFE
monochromatic
#FCE942 #FDF07F #FEF7BB #FFFBE1 #FFFBE1

Accessibility & contrast

On white

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

On black

19.24
#FEF7BB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7BB
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7BB#FFFFFF#000000##000000
##FEF7BB1.001.0919.2419.24
#FFFFFF1.091.0021.0021.00
#00000019.2421.001.001.00
##00000019.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3B7
Deuteranopia (green-blind)
#FFF7BD
Tritanopia (blue-blind)
#FFEFE7
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef7bb;
/* rgb */ color: rgb(254, 247, 187);
/* oklch */ color: oklch(96.7% 0.077 102.1);
Tailwind
colors: {
  custom: {
    50: '#fff9cf',
    500: '#fef7bb',
    950: '#000000',
  },
}
SCSS
$custom: #fef7bb;
$custom-light: #fff9cf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7bb",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 187
  },
  "hsl": {
    "h": 53.731,
    "s": 97.101,
    "l": 86.471
  },
  "oklch": {
    "l": 0.96733,
    "c": 0.0768,
    "h": 102.1
  },
  "luminance": 0.9118
}

Semantic roles & 50–950 ramp

primary
#FEF7BB
secondary
#7883E5
accent
#18E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF7BB

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

Preview Lab → · Contrast checker → · Palette generator →

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