#FEF2BA#FEF2BA

#FEF2BA is a very light, moderate yellow. Relative luminance 0.881; OKLCH L 95.7% C 0.073 H 97.4°. Best body text is #000000 at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#FEF2BA
RGBrgb(254, 242, 186)
HSLhsl(49, 97%, 86%)
HSVhsv(49, 27%, 100%)
CMYKcmyk(0%, 4.7%, 26.8%, 0.4%)
CIE-LABlab(95.21, -4.37, 28.54)
CIE-LCHlch(95.21, 28.88, 98.70°)
OKLaboklab(95.72% -0.0094 0.0721)
OKLCHoklch(95.72% 0.073 97.4)
XYZxyz(81.4885, 88.1220, 59.1614)
Luminance0.8812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2BA #BAC6FE
analogous
#FED0BA #FEF2BA #E8FEBA
triadic
#FEF2BA #BAFEF2 #F2BAFE
tetradic
#FEF2BA #BAFED0 #BAC6FE #FEBAE8
square
#FEF2BA #BAFED0 #BAC6FE #FEBAE8
split-complementary
#FEF2BA #BAE8FE #D0BAFE
monochromatic
#FCDB41 #FDE77E #FEF2BA #FFF9E1 #FFF9E1

Accessibility & contrast

On white

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

On black

18.62
#FEF2BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2BA
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2BA#FFFFFF#000000##000000
##FEF2BA1.001.1318.6218.62
#FFFFFF1.131.0021.0021.00
#00000018.6221.001.001.00
##00000018.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FDEFB6
Deuteranopia (green-blind)
#FFF3BC
Tritanopia (blue-blind)
#FFEAE3
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef2ba;
/* rgb */ color: rgb(254, 242, 186);
/* oklch */ color: oklch(95.7% 0.073 97.4);
Tailwind
colors: {
  custom: {
    50: '#fff6cf',
    500: '#fef2ba',
    950: '#000000',
  },
}
SCSS
$custom: #fef2ba;
$custom-light: #fff6cf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2ba",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 186
  },
  "hsl": {
    "h": 49.412,
    "s": 97.143,
    "l": 86.275
  },
  "oklch": {
    "l": 0.95722,
    "c": 0.07274,
    "h": 97.4
  },
  "luminance": 0.8812
}

Semantic roles & 50–950 ramp

primary
#FEF2BA
secondary
#778BE5
accent
#28E600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181713
muted
#868583

Preview Lab

Preview with #FEF2BA

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

Preview Lab → · Contrast checker → · Palette generator →

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