#FEF0B2#FEF0B2
#FEF0B2 is a very light, moderate yellow. Relative luminance 0.866; OKLCH L 95.2% C 0.080 H 96.9°. Best body text is #000000 at 18.32:1 contrast (WCAG AA passes).
Color values
| HEX | #FEF0B2 |
|---|---|
| RGB | rgb(254, 240, 178) |
| HSL | hsl(49, 97%, 85%) |
| HSV | hsv(49, 30%, 100%) |
| CMYK | cmyk(0%, 5.5%, 29.9%, 0.4%) |
| CIE-LAB | lab(94.57, -4.38, 31.74) |
| CIE-LCH | lch(94.57, 32.04, 97.86°) |
| OKLab | oklab(95.17% -0.0096 0.0797) |
| OKLCH | oklch(95.17% 0.08 96.9) |
| XYZ | xyz(80.0697, 86.6073, 54.6098) |
| Luminance | 0.8660 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Tan
#FBEEAC
ΔE00 1.04
Vanilla
#F3E5AB
ΔE00 2.43
Palegoldenrod
#EEE8AA
ΔE00 3.15
Egg Shell
#FFFCC4
ΔE00 4.11
Pale Peach
#FFE5AD
ΔE00 4.57
Light Beige
#FFFEB6
ΔE00 4.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#FEF0B2 #B2C0FE
analogous
#FECAB2 #FEF0B2 #E6FEB2
triadic
#FEF0B2 #B2FEF0 #F0B2FE
tetradic
#FEF0B2 #B2FECA #B2C0FE #FEB2E6
square
#FEF0B2 #B2FECA #B2C0FE #FEB2E6
split-complementary
#FEF0B2 #B2E6FE #CAB2FE
monochromatic
#FCD839 #FDE476 #FEF0B2 #FFF9E1 #FFF9E1
Accessibility & contrast
On white
1.15
#FEF0B2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.32
#FEF0B2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #FEF0B2
18.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##FEF0B2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##FEF0B2 | 1.00 | 1.15 | 18.32 | 18.32 |
| #FFFFFF | 1.15 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FCECAE
Deuteranopia (green-blind)
#FFF2B4
Tritanopia (blue-blind)
#FFE7E0
Achromatopsia (no color)
#EFEFEF
Design tokens & code
CSS
--color: #fef0b2; /* rgb */ color: rgb(254, 240, 178); /* oklch */ color: oklch(95.2% 0.080 96.9);
Tailwind
colors: {
custom: {
50: '#fff4c9',
500: '#fef0b2',
950: '#000000',
},
}SCSS
$custom: #fef0b2; $custom-light: #fff4c9; $custom-dark: #000000;
JSON
{
"hex": "#fef0b2",
"rgb": {
"r": 254,
"g": 240,
"b": 178
},
"hsl": {
"h": 48.947,
"s": 97.436,
"l": 84.706
},
"oklch": {
"l": 0.9517,
"c": 0.08023,
"h": 96.9
},
"luminance": 0.86605
}Semantic roles & 50–950 ramp
primary
#FEF0B2
secondary
#7086E4
accent
#2AE600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582