#F0E87F#F0E87F
#F0E87F is a very light, vivid yellow. Relative luminance 0.778; OKLCH L 91.6% C 0.127 H 104.8°. Best body text is #000000 at 16.55:1 contrast (WCAG AA passes).
Color values
| HEX | #F0E87F |
|---|---|
| RGB | rgb(240, 232, 127) |
| HSL | hsl(56, 79%, 72%) |
| HSV | hsv(56, 47%, 94%) |
| CMYK | cmyk(0%, 3.3%, 47.1%, 5.9%) |
| CIE-LAB | lab(90.68, -11.26, 51.69) |
| CIE-LCH | lch(90.68, 52.90, 102.28°) |
| OKLab | oklab(91.57% -0.0325 0.1233) |
| OKLCH | oklch(91.57% 0.127 104.8) |
| XYZ | xyz(68.6242, 77.7728, 31.4713) |
| Luminance | 0.7777 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (CSS)
#F0E68C
ΔE00 2.26
Sandy Yellow
#FDEE73
ΔE00 3.28
Straw
#FCF679
ΔE00 3.69
Dark Cream
#FFF39A
ΔE00 3.74
Manilla
#FFFA86
ΔE00 3.88
Buff
#FEF69E
ΔE00 4.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0E87F #7F87F0
analogous
#F0B07F #F0E87F #C0F07F
triadic
#F0E87F #7FF0E8 #E87FF0
tetradic
#F0E87F #7FF0B0 #7F87F0 #F07FC0
square
#F0E87F #7FF0B0 #7F87F0 #F07FC0
split-complementary
#F0E87F #7FC0F0 #B07FF0
monochromatic
#DBCD1A #EADE48 #F0E87F #F6F2B6 #FCFAE4
Accessibility & contrast
On white
1.27
#F0E87F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
16.55
#F0E87F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0E87F
16.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0E87F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0E87F | 1.00 | 1.27 | 16.55 | 16.55 |
| #FFFFFF | 1.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 16.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 16.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F8E176
Deuteranopia (green-blind)
#FBE784
Tritanopia (blue-blind)
#FEDCCF
Achromatopsia (no color)
#E4E4E4
Design tokens & code
CSS
--color: #f0e87f; /* rgb */ color: rgb(240, 232, 127); /* oklch */ color: oklch(91.6% 0.127 104.8);
Tailwind
colors: {
custom: {
50: '#f7efa6',
500: '#f0e87f',
950: '#000000',
},
}SCSS
$custom: #f0e87f; $custom-light: #f7efa6; $custom-dark: #000000;
JSON
{
"hex": "#f0e87f",
"rgb": {
"r": 240,
"g": 232,
"b": 127
},
"hsl": {
"h": 55.752,
"s": 79.021,
"l": 71.961
},
"oklch": {
"l": 0.91571,
"c": 0.12748,
"h": 104.8
},
"luminance": 0.77771
}Semantic roles & 50–950 ramp
primary
#F0E87F
secondary
#4952CB
accent
#19DB0A
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#17160F
muted
#858580