#FEF8BA#FEF8BA

#FEF8BA is a very light, moderate yellow. Relative luminance 0.918; OKLCH L 96.9% C 0.079 H 103.1°. Best body text is #000000 at 19.35:1 contrast (WCAG AA passes).

Color values

HEX#FEF8BA
RGBrgb(254, 248, 186)
HSLhsl(55, 97%, 86%)
HSVhsv(55, 27%, 100%)
CMYKcmyk(0%, 2.4%, 26.8%, 0.4%)
CIE-LABlab(96.72, -7.36, 30.59)
CIE-LCHlch(96.72, 31.46, 103.53°)
OKLaboklab(96.91% -0.018 0.077)
OKLCHoklch(96.91% 0.079 103.1)
XYZxyz(83.3037, 91.7523, 59.7665)
Luminance0.9175 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8BA #BAC0FE
analogous
#FED6BA #FEF8BA #E2FEBA
triadic
#FEF8BA #BAFEF8 #F8BAFE
tetradic
#FEF8BA #BAFED6 #BAC0FE #FEBAE2
square
#FEF8BA #BAFED6 #BAC0FE #FEBAE2
split-complementary
#FEF8BA #BAE2FE #D6BAFE
monochromatic
#FCEC41 #FDF27E #FEF8BA #FFFCE1 #FFFCE1

Accessibility & contrast

On white

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

On black

19.35
#FEF8BA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8BA
19.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8BA#FFFFFF#000000##000000
##FEF8BA1.001.0919.3519.35
#FFFFFF1.091.0021.0021.00
#00000019.3521.001.001.00
##00000019.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef8ba;
/* rgb */ color: rgb(254, 248, 186);
/* oklch */ color: oklch(96.9% 0.079 103.1);
Tailwind
colors: {
  custom: {
    50: '#fffacf',
    500: '#fef8ba',
    950: '#000000',
  },
}
SCSS
$custom: #fef8ba;
$custom-light: #fffacf;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8ba",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 186
  },
  "hsl": {
    "h": 54.706,
    "s": 97.143,
    "l": 86.275
  },
  "oklch": {
    "l": 0.96913,
    "c": 0.07912,
    "h": 103.1
  },
  "luminance": 0.91751
}

Semantic roles & 50–950 ramp

primary
#FEF8BA
secondary
#7781E5
accent
#14E600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181713
muted
#868583

Preview Lab

Preview with #FEF8BA

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

Preview Lab → · Contrast checker → · Palette generator →

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