#ECF997#ECF997
#ECF997 is a very light, vivid yellow. Relative luminance 0.878; OKLCH L 95.1% C 0.122 H 114.9°. Best body text is #000000 at 18.56:1 contrast (WCAG AA passes).
Color values
| HEX | #ECF997 |
|---|---|
| RGB | rgb(236, 249, 151) |
| HSL | hsl(68, 89%, 78%) |
| HSV | hsv(68, 39%, 98%) |
| CMYK | cmyk(5.2%, 0%, 39.4%, 2.4%) |
| CIE-LAB | lab(95.08, -18.73, 45.57) |
| CIE-LCH | lch(95.08, 49.26, 112.34°) |
| OKLab | oklab(95.11% -0.0516 0.1111) |
| OKLCH | oklch(95.11% 0.122 114.9) |
| XYZ | xyz(74.0542, 87.8194, 42.3218) |
| Luminance | 0.8782 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Khaki
#E6F2A2
ΔE00 3.14
Parchment
#FEFCAF
ΔE00 4.90
Yellowish Tan
#FCFC81
ΔE00 5.09
Pale Yellow
#FFFF84
ΔE00 5.21
Buff
#FEF69E
ΔE00 5.26
Creme
#FFFFB6
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#ECF997 #A497F9
analogous
#F9D597 #ECF997 #BBF997
triadic
#ECF997 #97ECF9 #F997EC
tetradic
#ECF997 #97F9D5 #A497F9 #F997BB
square
#ECF997 #97F9D5 #A497F9 #F997BB
split-complementary
#ECF997 #97BBF9 #D597F9
monochromatic
#D7F223 #E1F65D #ECF997 #F7FCD1 #FAFDE2
Accessibility & contrast
On white
1.13
#ECF997 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.56
#ECF997 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #ECF997
18.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##ECF997 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##ECF997 | 1.00 | 1.13 | 18.56 | 18.56 |
| #FFFFFF | 1.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFF08F
Deuteranopia (green-blind)
#FFF29C
Tritanopia (blue-blind)
#F6EFE1
Achromatopsia (no color)
#F1F1F1
Design tokens & code
CSS
--color: #ecf997; /* rgb */ color: rgb(236, 249, 151); /* oklch */ color: oklch(95.1% 0.122 114.9);
Tailwind
colors: {
custom: {
50: '#f3fbb7',
500: '#ecf997',
950: '#000000',
},
}SCSS
$custom: #ecf997; $custom-light: #f3fbb7; $custom-dark: #000000;
JSON
{
"hex": "#ecf997",
"rgb": {
"r": 236,
"g": 249,
"b": 151
},
"hsl": {
"h": 67.959,
"s": 89.091,
"l": 78.431
},
"oklch": {
"l": 0.95106,
"c": 0.12247,
"h": 114.9
},
"luminance": 0.87819
}Semantic roles & 50–950 ramp
primary
#ECF997
secondary
#6C5BD9
accent
#00E61E
background
#FFFFFD
surface
#FEFFF8
border
#D6D7D1
text
#171711
muted
#858581