#FEF7BF#FEF7BF

#FEF7BF is a very light, moderate yellow. Relative luminance 0.914; OKLCH L 96.8% C 0.072 H 101.7°. Best body text is #000000 at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#FEF7BF
RGBrgb(254, 247, 191)
HSLhsl(53, 97%, 87%)
HSVhsv(53, 25%, 100%)
CMYKcmyk(0%, 2.8%, 24.8%, 0.4%)
CIE-LABlab(96.56, -6.21, 27.84)
CIE-LCHlch(96.56, 28.52, 102.58°)
OKLaboklab(96.81% -0.0146 0.0705)
OKLCHoklch(96.81% 0.072 101.7)
XYZxyz(83.5379, 91.3554, 62.5128)
Luminance0.9135 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7BF #BFC6FE
analogous
#FED7BF #FEF7BF #E6FEBF
triadic
#FEF7BF #BFFEF7 #F7BFFE
tetradic
#FEF7BF #BFFED7 #BFC6FE #FEBFE6
square
#FEF7BF #BFFED7 #BFC6FE #FEBFE6
split-complementary
#FEF7BF #BFE6FE #D7BFFE
monochromatic
#FCE846 #FDEF83 #FEF7BF #FFFBE1 #FFFBE1

Accessibility & contrast

On white

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

On black

19.27
#FEF7BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7BF
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7BF#FFFFFF#000000##000000
##FEF7BF1.001.0919.2719.27
#FFFFFF1.091.0021.0021.00
#00000019.2721.001.001.00
##00000019.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3BB
Deuteranopia (green-blind)
#FFF7C1
Tritanopia (blue-blind)
#FFEFE8
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef7bf;
/* rgb */ color: rgb(254, 247, 191);
/* oklch */ color: oklch(96.8% 0.072 101.7);
Tailwind
colors: {
  custom: {
    50: '#fff9d2',
    500: '#fef7bf',
    950: '#000000',
  },
}
SCSS
$custom: #fef7bf;
$custom-light: #fff9d2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7bf",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 191
  },
  "hsl": {
    "h": 53.333,
    "s": 96.923,
    "l": 87.255
  },
  "oklch": {
    "l": 0.96813,
    "c": 0.07198,
    "h": 101.7
  },
  "luminance": 0.91354
}

Semantic roles & 50–950 ramp

primary
#FEF7BF
secondary
#7B87E6
accent
#1AE600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF7BF

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

Preview Lab → · Contrast checker → · Palette generator →

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