#F5F28E#F5F28E
#F5F28E is a very light, vivid yellow. Relative luminance 0.849; OKLCH L 94.2% C 0.122 H 107.0°. Best body text is #000000 at 17.97:1 contrast (WCAG AA passes).
Color values
| HEX | #F5F28E |
|---|---|
| RGB | rgb(245, 242, 142) |
| HSL | hsl(58, 84%, 76%) |
| HSV | hsv(58, 42%, 96%) |
| CMYK | cmyk(0%, 1.2%, 42%, 3.9%) |
| CIE-LAB | lab(93.83, -12.82, 48.48) |
| CIE-LCH | lch(93.83, 50.15, 104.81°) |
| OKLab | oklab(94.23% -0.0358 0.1171) |
| OKLCH | oklch(94.23% 0.122 107) |
| XYZ | xyz(74.2921, 84.8715, 38.0542) |
| Luminance | 0.8487 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Buff
#FEF69E
ΔE00 2.48
Manilla
#FFFA86
ΔE00 2.75
Dark Cream
#FFF39A
ΔE00 2.91
Khaki (CSS)
#F0E68C
ΔE00 3.16
Yellowish Tan
#FCFC81
ΔE00 3.48
Straw
#FCF679
ΔE00 3.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F5F28E #8E91F5
analogous
#F5BE8E #F5F28E #C4F58E
triadic
#F5F28E #8EF5F2 #F28EF5
tetradic
#F5F28E #8EF5BE #8E91F5 #F58EC4
square
#F5F28E #8EF5BE #8E91F5 #F58EC4
split-complementary
#F5F28E #8EC4F5 #BE8EF5
monochromatic
#EBE51E #F0EC56 #F5F28E #FAF8C6 #FDFCE3
Accessibility & contrast
On white
1.17
#F5F28E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.97
#F5F28E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F5F28E
17.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F5F28E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F5F28E | 1.00 | 1.17 | 17.97 | 17.97 |
| #FFFFFF | 1.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEB86
Deuteranopia (green-blind)
#FFEF92
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EDEDED
Design tokens & code
CSS
--color: #f5f28e; /* rgb */ color: rgb(245, 242, 142); /* oklch */ color: oklch(94.2% 0.122 107.0);
Tailwind
colors: {
custom: {
50: '#faf6b0',
500: '#f5f28e',
950: '#000000',
},
}SCSS
$custom: #f5f28e; $custom-light: #faf6b0; $custom-dark: #000000;
JSON
{
"hex": "#f5f28e",
"rgb": {
"r": 245,
"g": 242,
"b": 142
},
"hsl": {
"h": 58.252,
"s": 83.74,
"l": 75.882
},
"oklch": {
"l": 0.94232,
"c": 0.12244,
"h": 107
},
"luminance": 0.8487
}Semantic roles & 50–950 ramp
primary
#F5F28E
secondary
#5558D3
accent
#0CE005
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581