#F8E162#F8E162
#F8E162 is a very light, vivid yellow. Relative luminance 0.747; OKLCH L 90.5% C 0.147 H 99.1°. Best body text is #000000 at 15.94:1 contrast (WCAG AA passes).
Color values
| HEX | #F8E162 |
|---|---|
| RGB | rgb(248, 225, 98) |
| HSL | hsl(51, 91%, 68%) |
| HSV | hsv(51, 60%, 97%) |
| CMYK | cmyk(0%, 9.3%, 60.5%, 2.7%) |
| CIE-LAB | lab(89.25, -6.81, 63.40) |
| CIE-LCH | lch(89.25, 63.77, 96.13°) |
| OKLab | oklab(90.5% -0.0233 0.1455) |
| OKLCH | oklch(90.5% 0.147 99.1) |
| XYZ | xyz(67.8439, 74.6917, 22.3962) |
| Luminance | 0.7469 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sand Yellow
#FCE166
ΔE00 1.17
Dull Yellow
#EEDC5B
ΔE00 1.85
Yellow Tan
#FFE36E
ΔE00 1.94
Light Gold
#FDDC5C
ΔE00 2.72
Pale Gold
#FDDE6C
ΔE00 2.75
Sandy Yellow
#FDEE73
ΔE00 3.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F8E162 #6279F8
analogous
#F89662 #F8E162 #C4F862
triadic
#F8E162 #62F8E1 #E162F8
tetradic
#F8E162 #62F896 #6279F8 #F862C4
square
#F8E162 #62F896 #6279F8 #F862C4
split-complementary
#F8E162 #62C4F8 #9662F8
monochromatic
#D6B70A #F5D627 #F8E162 #FBEC9D #FDF7D7
Accessibility & contrast
On white
1.32
#F8E162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.94
#F8E162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F8E162
15.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F8E162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F8E162 | 1.00 | 1.32 | 15.94 | 15.94 |
| #FFFFFF | 1.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.94 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.94 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F5DB54
Deuteranopia (green-blind)
#FBE468
Tritanopia (blue-blind)
#FFD2C6
Achromatopsia (no color)
#E0E0E0
Design tokens & code
CSS
--color: #f8e162; /* rgb */ color: rgb(248, 225, 98); /* oklch */ color: oklch(90.5% 0.147 99.1);
Tailwind
colors: {
custom: {
50: '#feea93',
500: '#f8e162',
950: '#000000',
},
}SCSS
$custom: #f8e162; $custom-light: #feea93; $custom-dark: #000000;
JSON
{
"hex": "#f8e162",
"rgb": {
"r": 248,
"g": 225,
"b": 98
},
"hsl": {
"h": 50.8,
"s": 91.463,
"l": 67.843
},
"oklch": {
"l": 0.905,
"c": 0.14736,
"h": 99.1
},
"luminance": 0.74689
}Semantic roles & 50–950 ramp
primary
#F8E162
secondary
#2E47D0
accent
#23E600
background
#FFFEFC
surface
#FFFCF4
border
#D7D5CE
text
#18160D
muted
#86847F