#FEF3B8#FEF3B8

#FEF3B8 is a very light, moderate yellow. Relative luminance 0.886; OKLCH L 95.9% C 0.076 H 98.8°. Best body text is #000000 at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#FEF3B8
RGBrgb(254, 243, 184)
HSLhsl(51, 97%, 86%)
HSVhsv(51, 28%, 100%)
CMYKcmyk(0%, 4.3%, 27.6%, 0.4%)
CIE-LABlab(95.43, -5.13, 29.85)
CIE-LCHlch(95.43, 30.29, 99.74°)
OKLaboklab(95.88% -0.0116 0.0753)
OKLCHoklch(95.88% 0.076 98.8)
XYZxyz(81.5758, 88.6344, 58.1490)
Luminance0.8863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF3B8 #B8C3FE
analogous
#FED0B8 #FEF3B8 #E6FEB8
triadic
#FEF3B8 #B8FEF3 #F3B8FE
tetradic
#FEF3B8 #B8FED0 #B8C3FE #FEB8E6
square
#FEF3B8 #B8FED0 #B8C3FE #FEB8E6
split-complementary
#FEF3B8 #B8E6FE #D0B8FE
monochromatic
#FCDF3F #FDE97C #FEF3B8 #FFFAE1 #FFFAE1

Accessibility & contrast

On white

1.12
#FEF3B8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.73
#FEF3B8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF3B8
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF3B8#FFFFFF#000000##000000
##FEF3B81.001.1218.7318.73
#FFFFFF1.121.0021.0021.00
#00000018.7321.001.001.00
##00000018.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEFB4
Deuteranopia (green-blind)
#FFF4BA
Tritanopia (blue-blind)
#FFEBE3
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef3b8;
/* rgb */ color: rgb(254, 243, 184);
/* oklch */ color: oklch(95.9% 0.076 98.8);
Tailwind
colors: {
  custom: {
    50: '#fff7cd',
    500: '#fef3b8',
    950: '#000000',
  },
}
SCSS
$custom: #fef3b8;
$custom-light: #fff7cd;
$custom-dark: #000000;
JSON
{
  "hex": "#fef3b8",
  "rgb": {
    "r": 254,
    "g": 243,
    "b": 184
  },
  "hsl": {
    "h": 50.571,
    "s": 97.222,
    "l": 85.882
  },
  "oklch": {
    "l": 0.9588,
    "c": 0.07614,
    "h": 98.8
  },
  "luminance": 0.88633
}

Semantic roles & 50–950 ramp

primary
#FEF3B8
secondary
#7587E5
accent
#24E600
background
#FFFFFE
surface
#FFFEFA
border
#D7D6D3
text
#181713
muted
#868583

Preview Lab

Preview with #FEF3B8

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

Preview Lab → · Contrast checker → · Palette generator →

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