#FEF7BA#FEF7BA

#FEF7BA is a very light, moderate yellow. Relative luminance 0.911; OKLCH L 96.7% C 0.078 H 102.2°. Best body text is #000000 at 19.23:1 contrast (WCAG AA passes).

Color values

HEX#FEF7BA
RGBrgb(254, 247, 186)
HSLhsl(54, 97%, 86%)
HSVhsv(54, 27%, 100%)
CMYKcmyk(0%, 2.8%, 26.8%, 0.4%)
CIE-LABlab(96.47, -6.86, 30.25)
CIE-LCHlch(96.47, 31.02, 102.79°)
OKLaboklab(96.71% -0.0165 0.0762)
OKLCHoklch(96.71% 0.078 102.2)
XYZxyz(82.9970, 91.1391, 59.6643)
Luminance0.9114 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7BA #BAC1FE
analogous
#FED5BA #FEF7BA #E3FEBA
triadic
#FEF7BA #BAFEF7 #F7BAFE
tetradic
#FEF7BA #BAFED5 #BAC1FE #FEBAE3
square
#FEF7BA #BAFED5 #BAC1FE #FEBAE3
split-complementary
#FEF7BA #BAE3FE #D5BAFE
monochromatic
#FCE941 #FDF07E #FEF7BA #FFFCE1 #FFFCE1

Accessibility & contrast

On white

1.09
#FEF7BA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.23
#FEF7BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7BA
19.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7BA#FFFFFF#000000##000000
##FEF7BA1.001.0919.2319.23
#FFFFFF1.091.0021.0021.00
#00000019.2321.001.001.00
##00000019.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3B6
Deuteranopia (green-blind)
#FFF7BC
Tritanopia (blue-blind)
#FFEFE7
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef7ba;
/* rgb */ color: rgb(254, 247, 186);
/* oklch */ color: oklch(96.7% 0.078 102.2);
Tailwind
colors: {
  custom: {
    50: '#fff9cf',
    500: '#fef7ba',
    950: '#000000',
  },
}
SCSS
$custom: #fef7ba;
$custom-light: #fff9cf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7ba",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 186
  },
  "hsl": {
    "h": 53.824,
    "s": 97.143,
    "l": 86.275
  },
  "oklch": {
    "l": 0.96713,
    "c": 0.078,
    "h": 102.2
  },
  "luminance": 0.91138
}

Semantic roles & 50–950 ramp

primary
#FEF7BA
secondary
#7782E5
accent
#18E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181713
muted
#868583

Preview Lab

Preview with #FEF7BA

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

Preview Lab → · Contrast checker → · Palette generator →

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