#FEF8BF#FEF8BF

#FEF8BF is a very light, moderate yellow. Relative luminance 0.920; OKLCH L 97.0% C 0.073 H 102.6°. Best body text is #000000 at 19.39:1 contrast (WCAG AA passes).

Color values

HEX#FEF8BF
RGBrgb(254, 248, 191)
HSLhsl(54, 97%, 87%)
HSVhsv(54, 25%, 100%)
CMYKcmyk(0%, 2.4%, 24.8%, 0.4%)
CIE-LABlab(96.81, -6.71, 28.18)
CIE-LCHlch(96.81, 28.97, 103.39°)
OKLaboklab(97.01% -0.016 0.0713)
OKLCHoklch(97.01% 0.073 102.6)
XYZxyz(83.8445, 91.9687, 62.6150)
Luminance0.9197 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8BF #BFC5FE
analogous
#FED9BF #FEF8BF #E4FEBF
triadic
#FEF8BF #BFFEF8 #F8BFFE
tetradic
#FEF8BF #BFFED9 #BFC5FE #FEBFE4
square
#FEF8BF #BFFED9 #BFC5FE #FEBFE4
split-complementary
#FEF8BF #BFE4FE #D9BFFE
monochromatic
#FCEB46 #FDF183 #FEF8BF #FFFCE1 #FFFCE1

Accessibility & contrast

On white

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

On black

19.39
#FEF8BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8BF
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8BF#FFFFFF#000000##000000
##FEF8BF1.001.0819.3919.39
#FFFFFF1.081.0021.0021.00
#00000019.3921.001.001.00
##00000019.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4BB
Deuteranopia (green-blind)
#FFF7C1
Tritanopia (blue-blind)
#FFF0E9
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef8bf;
/* rgb */ color: rgb(254, 248, 191);
/* oklch */ color: oklch(97.0% 0.073 102.6);
Tailwind
colors: {
  custom: {
    50: '#fffad2',
    500: '#fef8bf',
    950: '#000000',
  },
}
SCSS
$custom: #fef8bf;
$custom-light: #fffad2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8bf",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 191
  },
  "hsl": {
    "h": 54.286,
    "s": 96.923,
    "l": 87.255
  },
  "oklch": {
    "l": 0.97012,
    "c": 0.07309,
    "h": 102.6
  },
  "luminance": 0.91967
}

Semantic roles & 50–950 ramp

primary
#FEF8BF
secondary
#7B86E6
accent
#16E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF8BF

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

Preview Lab → · Contrast checker → · Palette generator →

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