#FEF2BF#FEF2BF

#FEF2BF is a very light, moderate yellow. Relative luminance 0.883; OKLCH L 95.8% C 0.067 H 96.4°. Best body text is #000000 at 18.67:1 contrast (WCAG AA passes).

Color values

HEX#FEF2BF
RGBrgb(254, 242, 191)
HSLhsl(49, 97%, 87%)
HSVhsv(49, 25%, 100%)
CMYKcmyk(0%, 4.7%, 24.8%, 0.4%)
CIE-LABlab(95.30, -3.71, 26.12)
CIE-LCHlch(95.30, 26.39, 98.09°)
OKLaboklab(95.82% -0.0074 0.0663)
OKLCHoklch(95.82% 0.067 96.4)
XYZxyz(82.0294, 88.3384, 62.0099)
Luminance0.8834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2BF #BFCBFE
analogous
#FED2BF #FEF2BF #EBFEBF
triadic
#FEF2BF #BFFEF2 #F2BFFE
tetradic
#FEF2BF #BFFED2 #BFCBFE #FEBFEB
square
#FEF2BF #BFFED2 #BFCBFE #FEBFEB
split-complementary
#FEF2BF #BFEBFE #D2BFFE
monochromatic
#FCDA46 #FDE683 #FEF2BF #FFF9E1 #FFF9E1

Accessibility & contrast

On white

1.12
#FEF2BF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.67
#FEF2BF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2BF
18.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2BF#FFFFFF#000000##000000
##FEF2BF1.001.1218.6718.67
#FFFFFF1.121.0021.0021.00
#00000018.6721.001.001.00
##00000018.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDEFBC
Deuteranopia (green-blind)
#FFF3C1
Tritanopia (blue-blind)
#FFEAE4
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef2bf;
/* rgb */ color: rgb(254, 242, 191);
/* oklch */ color: oklch(95.8% 0.067 96.4);
Tailwind
colors: {
  custom: {
    50: '#fff6d2',
    500: '#fef2bf',
    950: '#000000',
  },
}
SCSS
$custom: #fef2bf;
$custom-light: #fff6d2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2bf",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 191
  },
  "hsl": {
    "h": 48.571,
    "s": 96.923,
    "l": 87.255
  },
  "oklch": {
    "l": 0.95823,
    "c": 0.06674,
    "h": 96.4
  },
  "luminance": 0.88337
}

Semantic roles & 50–950 ramp

primary
#FEF2BF
secondary
#7B90E6
accent
#2CE600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF2BF

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

Preview Lab → · Contrast checker → · Palette generator →

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