#FEF2BD#FEF2BD

#FEF2BD is a very light, moderate yellow. Relative luminance 0.882; OKLCH L 95.8% C 0.069 H 96.8°. Best body text is #000000 at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#FEF2BD
RGBrgb(254, 242, 189)
HSLhsl(49, 97%, 87%)
HSVhsv(49, 26%, 100%)
CMYKcmyk(0%, 4.7%, 25.6%, 0.4%)
CIE-LABlab(95.27, -3.98, 27.09)
CIE-LCHlch(95.27, 27.38, 98.35°)
OKLaboklab(95.78% -0.0082 0.0687)
OKLCHoklch(95.78% 0.069 96.8)
XYZxyz(81.8108, 88.2509, 60.8587)
Luminance0.8825 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2BD #BDC9FE
analogous
#FED2BD #FEF2BD #EAFEBD
triadic
#FEF2BD #BDFEF2 #F2BDFE
tetradic
#FEF2BD #BDFED2 #BDC9FE #FEBDEA
square
#FEF2BD #BDFED2 #BDC9FE #FEBDEA
split-complementary
#FEF2BD #BDEAFE #D2BDFE
monochromatic
#FCDA44 #FDE681 #FEF2BD #FFF9E1 #FFF9E1

Accessibility & contrast

On white

1.13
#FEF2BD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.65
#FEF2BD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2BD
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2BD#FFFFFF#000000##000000
##FEF2BD1.001.1318.6518.65
#FFFFFF1.131.0021.0021.00
#00000018.6521.001.001.00
##00000018.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef2bd;
/* rgb */ color: rgb(254, 242, 189);
/* oklch */ color: oklch(95.8% 0.069 96.8);
Tailwind
colors: {
  custom: {
    50: '#fff6d1',
    500: '#fef2bd',
    950: '#000000',
  },
}
SCSS
$custom: #fef2bd;
$custom-light: #fff6d1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2bd",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 189
  },
  "hsl": {
    "h": 48.923,
    "s": 97.015,
    "l": 86.863
  },
  "oklch": {
    "l": 0.95782,
    "c": 0.06915,
    "h": 96.8
  },
  "luminance": 0.88249
}

Semantic roles & 50–950 ramp

primary
#FEF2BD
secondary
#7A8EE6
accent
#2AE600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF2BD

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

Preview Lab → · Contrast checker → · Palette generator →

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