#F8E170#F8E170
#F8E170 is a very light, vivid yellow. Relative luminance 0.750; OKLCH L 90.7% C 0.135 H 98.0°. Best body text is #000000 at 16.00:1 contrast (WCAG AA passes).
Color values
| HEX | #F8E170 |
|---|---|
| RGB | rgb(248, 225, 112) |
| HSL | hsl(50, 91%, 71%) |
| HSV | hsv(50, 55%, 97%) |
| CMYK | cmyk(0%, 9.3%, 54.8%, 2.7%) |
| CIE-LAB | lab(89.38, -5.82, 57.32) |
| CIE-LCH | lch(89.38, 57.61, 95.79°) |
| OKLab | oklab(90.65% -0.0188 0.1341) |
| OKLCH | oklch(90.65% 0.135 98) |
| XYZ | xyz(68.5637, 74.9796, 26.1870) |
| Luminance | 0.7498 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellow Tan
#FFE36E
ΔE00 1.49
Sand Yellow
#FCE166
ΔE00 1.54
Pale Gold
#FDDE6C
ΔE00 2.17
Dull Yellow
#EEDC5B
ΔE00 2.71
Sandy
#F1DA7A
ΔE00 2.71
Light Gold
#FDDC5C
ΔE00 3.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F8E170 #7087F8
analogous
#F89D70 #F8E170 #CBF870
triadic
#F8E170 #70F8E1 #E170F8
tetradic
#F8E170 #70F89D #7087F8 #F870CB
square
#F8E170 #70F89D #7087F8 #F870CB
split-complementary
#F8E170 #70CBF8 #9D70F8
monochromatic
#E3BE0B #F5D536 #F8E170 #FBEDAA #FEF9E2
Accessibility & contrast
On white
1.31
#F8E170 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
16.00
#F8E170 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F8E170
16.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F8E170 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F8E170 | 1.00 | 1.31 | 16.00 | 16.00 |
| #FFFFFF | 1.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 16.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 16.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F4DC65
Deuteranopia (green-blind)
#FAE475
Tritanopia (blue-blind)
#FFD3C7
Achromatopsia (no color)
#E1E1E1
Design tokens & code
CSS
--color: #f8e170; /* rgb */ color: rgb(248, 225, 112); /* oklch */ color: oklch(90.7% 0.135 98.0);
Tailwind
colors: {
custom: {
50: '#fdea9c',
500: '#f8e170',
950: '#000000',
},
}SCSS
$custom: #f8e170; $custom-light: #fdea9c; $custom-dark: #000000;
JSON
{
"hex": "#f8e170",
"rgb": {
"r": 248,
"g": 225,
"b": 112
},
"hsl": {
"h": 49.853,
"s": 90.667,
"l": 70.588
},
"oklch": {
"l": 0.90651,
"c": 0.13542,
"h": 98
},
"luminance": 0.74977
}Semantic roles & 50–950 ramp
primary
#F8E170
secondary
#3953D3
accent
#27E600
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18160E
muted
#86847F