#FEF5BF#FEF5BF

#FEF5BF is a very light, moderate yellow. Relative luminance 0.901; OKLCH L 96.4% C 0.070 H 99.7°. Best body text is #000000 at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#FEF5BF
RGBrgb(254, 245, 191)
HSLhsl(51, 97%, 87%)
HSVhsv(51, 25%, 100%)
CMYKcmyk(0%, 3.5%, 24.8%, 0.4%)
CIE-LABlab(96.05, -5.21, 27.15)
CIE-LCHlch(96.05, 27.65, 100.87°)
OKLaboklab(96.42% -0.0117 0.0688)
OKLCHoklch(96.42% 0.07 99.7)
XYZxyz(82.9296, 90.1388, 62.3100)
Luminance0.9014 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF5BF #BFC8FE
analogous
#FED6BF #FEF5BF #E7FEBF
triadic
#FEF5BF #BFFEF5 #F5BFFE
tetradic
#FEF5BF #BFFED6 #BFC8FE #FEBFE7
square
#FEF5BF #BFFED6 #BFC8FE #FEBFE7
split-complementary
#FEF5BF #BFE7FE #D6BFFE
monochromatic
#FCE246 #FDEC83 #FEF5BF #FFFAE1 #FFFAE1

Accessibility & contrast

On white

1.10
#FEF5BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.03
#FEF5BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF5BF
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF5BF#FFFFFF#000000##000000
##FEF5BF1.001.1019.0319.03
#FFFFFF1.101.0021.0021.00
#00000019.0321.001.001.00
##00000019.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef5bf;
/* rgb */ color: rgb(254, 245, 191);
/* oklch */ color: oklch(96.4% 0.070 99.7);
Tailwind
colors: {
  custom: {
    50: '#fff8d2',
    500: '#fef5bf',
    950: '#000000',
  },
}
SCSS
$custom: #fef5bf;
$custom-light: #fff8d2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef5bf",
  "rgb": {
    "r": 254,
    "g": 245,
    "b": 191
  },
  "hsl": {
    "h": 51.429,
    "s": 96.923,
    "l": 87.255
  },
  "oklch": {
    "l": 0.96416,
    "c": 0.06981,
    "h": 99.7
  },
  "luminance": 0.90137
}

Semantic roles & 50–950 ramp

primary
#FEF5BF
secondary
#7B8BE6
accent
#21E600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF5BF

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

Preview Lab → · Contrast checker → · Palette generator →

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