#ECF8A2#ECF8A2
#ECF8A2 is a very light, moderate yellow. Relative luminance 0.876; OKLCH L 95.1% C 0.109 H 115.0°. Best body text is #000000 at 18.52:1 contrast (WCAG AA passes).
Color values
| HEX | #ECF8A2 |
|---|---|
| RGB | rgb(236, 248, 162) |
| HSL | hsl(68, 86%, 80%) |
| HSV | hsv(68, 35%, 97%) |
| CMYK | cmyk(4.8%, 0%, 34.7%, 2.7%) |
| CIE-LAB | lab(94.98, -16.99, 40.04) |
| CIE-LCH | lch(94.98, 43.50, 112.99°) |
| OKLab | oklab(95.08% -0.046 0.0988) |
| OKLCH | oklch(95.08% 0.109 115) |
| XYZ | xyz(74.6813, 87.5770, 47.1452) |
| Luminance | 0.8758 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Khaki
#E6F2A2
ΔE00 1.56
Parchment
#FEFCAF
ΔE00 3.96
Creme
#FFFFB6
ΔE00 4.10
Light Beige
#FFFEB6
ΔE00 4.30
Buff
#FEF69E
ΔE00 5.16
Cream (survey)
#FFFFC2
ΔE00 5.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ECF8A2 #AEA2F8
analogous
#F8D9A2 #ECF8A2 #C1F8A2
triadic
#ECF8A2 #A2ECF8 #F8A2EC
tetradic
#ECF8A2 #A2F8D9 #AEA2F8 #F8A2C1
square
#ECF8A2 #A2F8D9 #AEA2F8 #F8A2C1
split-complementary
#ECF8A2 #A2C1F8 #D9A2F8
monochromatic
#D5EF30 #E0F469 #ECF8A2 #F8FCDB #F9FDE3
Accessibility & contrast
On white
1.13
#ECF8A2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.52
#ECF8A2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ECF8A2
18.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ECF8A2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ECF8A2 | 1.00 | 1.13 | 18.52 | 18.52 |
| #FFFFFF | 1.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.52 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.52 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFF09C
Deuteranopia (green-blind)
#FFF1A6
Tritanopia (blue-blind)
#F5EFE2
Achromatopsia (no color)
#F1F1F1
Design tokens & code
CSS
--color: #ecf8a2; /* rgb */ color: rgb(236, 248, 162); /* oklch */ color: oklch(95.1% 0.109 115.0);
Tailwind
colors: {
custom: {
50: '#f3fabe',
500: '#ecf8a2',
950: '#000000',
},
}SCSS
$custom: #ecf8a2; $custom-light: #f3fabe; $custom-dark: #000000;
JSON
{
"hex": "#ecf8a2",
"rgb": {
"r": 236,
"g": 248,
"b": 162
},
"hsl": {
"h": 68.372,
"s": 86,
"l": 80.392
},
"oklch": {
"l": 0.95076,
"c": 0.10902,
"h": 115
},
"luminance": 0.87576
}Semantic roles & 50–950 ramp
primary
#ECF8A2
secondary
#7565D9
accent
#03E322
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171712
muted
#858582