#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 |
|---|---|
| RGB | rgb(254, 243, 184) |
| HSL | hsl(51, 97%, 86%) |
| HSV | hsv(51, 28%, 100%) |
| CMYK | cmyk(0%, 4.3%, 27.6%, 0.4%) |
| CIE-LAB | lab(95.43, -5.13, 29.85) |
| CIE-LCH | lch(95.43, 30.29, 99.74°) |
| OKLab | oklab(95.88% -0.0116 0.0753) |
| OKLCH | oklch(95.88% 0.076 98.8) |
| XYZ | xyz(81.5758, 88.6344, 58.1490) |
| Luminance | 0.8863 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Tan
#FBEEAC
ΔE00 1.87
Egg Shell
#FFFCC4
ΔE00 2.96
Vanilla
#F3E5AB
ΔE00 3.01
Palegoldenrod
#EEE8AA
ΔE00 3.08
Cream (survey)
#FFFFC2
ΔE00 3.84
Lemonchiffon
#FFFACD
ΔE00 3.91
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 |
|---|---|---|---|---|
| ##FEF3B8 | 1.00 | 1.12 | 18.73 | 18.73 |
| #FFFFFF | 1.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.73 | 21.00 | 1.00 | 1.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