#FEF0BC#FEF0BC

#FEF0BC is a very light, moderate yellow. Relative luminance 0.870; OKLCH L 95.4% C 0.068 H 94.8°. Best body text is #000000 at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#FEF0BC
RGBrgb(254, 240, 188)
HSLhsl(47, 97%, 87%)
HSVhsv(47, 26%, 100%)
CMYKcmyk(0%, 5.5%, 26%, 0.4%)
CIE-LABlab(94.75, -3.10, 26.89)
CIE-LCHlch(94.75, 27.07, 96.58°)
OKLaboklab(95.37% -0.0057 0.0682)
OKLCHoklch(95.37% 0.068 94.8)
XYZxyz(81.1106, 87.0236, 60.0917)
Luminance0.8702 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF0BC #BCCAFE
analogous
#FECFBC #FEF0BC #EBFEBC
triadic
#FEF0BC #BCFEF0 #F0BCFE
tetradic
#FEF0BC #BCFECF #BCCAFE #FEBCEB
square
#FEF0BC #BCFECF #BCCAFE #FEBCEB
split-complementary
#FEF0BC #BCEBFE #CFBCFE
monochromatic
#FCD543 #FDE380 #FEF0BC #FFF8E1 #FFF8E1

Accessibility & contrast

On white

1.14
#FEF0BC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.40
#FEF0BC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF0BC
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF0BC#FFFFFF#000000##000000
##FEF0BC1.001.1418.4018.40
#FFFFFF1.141.0021.0021.00
#00000018.4021.001.001.00
##00000018.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FBEDB9
Deuteranopia (green-blind)
#FFF2BE
Tritanopia (blue-blind)
#FFE8E2
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef0bc;
/* rgb */ color: rgb(254, 240, 188);
/* oklch */ color: oklch(95.4% 0.068 94.8);
Tailwind
colors: {
  custom: {
    50: '#fff4d0',
    500: '#fef0bc',
    950: '#000000',
  },
}
SCSS
$custom: #fef0bc;
$custom-light: #fff4d0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef0bc",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 188
  },
  "hsl": {
    "h": 47.273,
    "s": 97.059,
    "l": 86.667
  },
  "oklch": {
    "l": 0.95367,
    "c": 0.0684,
    "h": 94.8
  },
  "luminance": 0.87022
}

Semantic roles & 50–950 ramp

primary
#FEF0BC
secondary
#7990E5
accent
#31E600
background
#FFFFFE
surface
#FFFEFB
border
#D7D6D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF0BC

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

Preview Lab → · Contrast checker → · Palette generator →

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