#FEF7BE#FEF7BE

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

Color values

HEX#FEF7BE
RGBrgb(254, 247, 190)
HSLhsl(53, 97%, 87%)
HSVhsv(53, 25%, 100%)
CMYKcmyk(0%, 2.8%, 25.2%, 0.4%)
CIE-LABlab(96.54, -6.34, 28.32)
CIE-LCHlch(96.54, 29.02, 102.63°)
OKLaboklab(96.79% -0.015 0.0716)
OKLCHoklch(96.79% 0.073 101.8)
XYZxyz(83.4282, 91.3116, 61.9352)
Luminance0.9131 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7BE #BEC5FE
analogous
#FED7BE #FEF7BE #E5FEBE
triadic
#FEF7BE #BEFEF7 #F7BEFE
tetradic
#FEF7BE #BEFED7 #BEC5FE #FEBEE5
square
#FEF7BE #BEFED7 #BEC5FE #FEBEE5
split-complementary
#FEF7BE #BEE5FE #D7BEFE
monochromatic
#FCE845 #FDF082 #FEF7BE #FFFBE1 #FFFBE1

Accessibility & contrast

On white

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

On black

19.26
#FEF7BE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7BE
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7BE#FFFFFF#000000##000000
##FEF7BE1.001.0919.2619.26
#FFFFFF1.091.0021.0021.00
#00000019.2621.001.001.00
##00000019.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF3BA
Deuteranopia (green-blind)
#FFF7C0
Tritanopia (blue-blind)
#FFEFE8
Achromatopsia (no color)
#F5F5F5

Design tokens & code

CSS
--color: #fef7be;
/* rgb */ color: rgb(254, 247, 190);
/* oklch */ color: oklch(96.8% 0.073 101.8);
Tailwind
colors: {
  custom: {
    50: '#fff9d2',
    500: '#fef7be',
    950: '#000000',
  },
}
SCSS
$custom: #fef7be;
$custom-light: #fff9d2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7be",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 190
  },
  "hsl": {
    "h": 53.438,
    "s": 96.97,
    "l": 87.059
  },
  "oklch": {
    "l": 0.96793,
    "c": 0.07319,
    "h": 101.8
  },
  "luminance": 0.9131
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF7BE

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

Preview Lab → · Contrast checker → · Palette generator →

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