#FEF9BF#FEF9BF

#FEF9BF is a very light, moderate yellow. Relative luminance 0.926; OKLCH L 97.2% C 0.074 H 103.6°. Best body text is #000000 at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#FEF9BF
RGBrgb(254, 249, 191)
HSLhsl(55, 97%, 87%)
HSVhsv(55, 25%, 100%)
CMYKcmyk(0%, 2%, 24.8%, 0.4%)
CIE-LABlab(97.06, -7.21, 28.52)
CIE-LCHlch(97.06, 29.42, 104.18°)
OKLaboklab(97.21% -0.0174 0.0722)
OKLCHoklch(97.21% 0.074 103.6)
XYZxyz(84.1528, 92.5852, 62.7177)
Luminance0.9258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF9BF #BFC4FE
analogous
#FEDABF #FEF9BF #E4FEBF
triadic
#FEF9BF #BFFEF9 #F9BFFE
tetradic
#FEF9BF #BFFEDA #BFC4FE #FEBFE4
square
#FEF9BF #BFFEDA #BFC4FE #FEBFE4
split-complementary
#FEF9BF #BFE4FE #DABFFE
monochromatic
#FCEE46 #FDF383 #FEF9BF #FFFCE1 #FFFCE1

Accessibility & contrast

On white

1.08
#FEF9BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.52
#FEF9BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF9BF
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF9BF#FFFFFF#000000##000000
##FEF9BF1.001.0819.5219.52
#FFFFFF1.081.0021.0021.00
#00000019.5221.001.001.00
##00000019.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF5BB
Deuteranopia (green-blind)
#FFF8C1
Tritanopia (blue-blind)
#FFF1E9
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef9bf;
/* rgb */ color: rgb(254, 249, 191);
/* oklch */ color: oklch(97.2% 0.074 103.6);
Tailwind
colors: {
  custom: {
    50: '#fffbd2',
    500: '#fef9bf',
    950: '#000000',
  },
}
SCSS
$custom: #fef9bf;
$custom-light: #fffbd2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef9bf",
  "rgb": {
    "r": 254,
    "g": 249,
    "b": 191
  },
  "hsl": {
    "h": 55.238,
    "s": 96.923,
    "l": 87.255
  },
  "oklch": {
    "l": 0.97211,
    "c": 0.07422,
    "h": 103.6
  },
  "luminance": 0.92584
}

Semantic roles & 50–950 ramp

primary
#FEF9BF
secondary
#7B84E6
accent
#12E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF9BF

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

Preview Lab → · Contrast checker → · Palette generator →

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