#FEF7BD#FEF7BD

#FEF7BD is a very light, moderate yellow. Relative luminance 0.913; OKLCH L 96.8% C 0.074 H 101.9°. Best body text is #000000 at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#FEF7BD
RGBrgb(254, 247, 189)
HSLhsl(54, 97%, 87%)
HSVhsv(54, 26%, 100%)
CMYKcmyk(0%, 2.8%, 25.6%, 0.4%)
CIE-LABlab(96.52, -6.47, 28.80)
CIE-LCHlch(96.52, 29.52, 102.67°)
OKLaboklab(96.77% -0.0153 0.0728)
OKLCHoklch(96.77% 0.074 101.9)
XYZxyz(83.3193, 91.2680, 61.3616)
Luminance0.9127 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7BD #BDC4FE
analogous
#FED7BD #FEF7BD #E5FEBD
triadic
#FEF7BD #BDFEF7 #F7BDFE
tetradic
#FEF7BD #BDFED7 #BDC4FE #FEBDE5
square
#FEF7BD #BDFED7 #BDC4FE #FEBDE5
split-complementary
#FEF7BD #BDE5FE #D7BDFE
monochromatic
#FCE844 #FDF081 #FEF7BD #FFFBE1 #FFFBE1

Accessibility & contrast

On white

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

On black

19.25
#FEF7BD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7BD
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7BD#FFFFFF#000000##000000
##FEF7BD1.001.0919.2519.25
#FFFFFF1.091.0021.0021.00
#00000019.2521.001.001.00
##00000019.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef7bd;
/* rgb */ color: rgb(254, 247, 189);
/* oklch */ color: oklch(96.8% 0.074 101.9);
Tailwind
colors: {
  custom: {
    50: '#fff9d1',
    500: '#fef7bd',
    950: '#000000',
  },
}
SCSS
$custom: #fef7bd;
$custom-light: #fff9d1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7bd",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 189
  },
  "hsl": {
    "h": 53.538,
    "s": 97.015,
    "l": 86.863
  },
  "oklch": {
    "l": 0.96773,
    "c": 0.07439,
    "h": 101.9
  },
  "luminance": 0.91266
}

Semantic roles & 50–950 ramp

primary
#FEF7BD
secondary
#7A85E6
accent
#19E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF7BD

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

Preview Lab → · Contrast checker → · Palette generator →

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